kernel-mode #1
@ -50,7 +50,7 @@ class CpuTrap(BaseException):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def mcause(self):
|
def mcause(self):
|
||||||
return (self.code << 31) + self.interrupt
|
return (self.interrupt << 31) + self.code
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
name = "Reserved interrupt({}, {})".format(self.interrupt, self.code)
|
name = "Reserved interrupt({}, {})".format(self.interrupt, self.code)
|
||||||
|
Loading…
Reference in New Issue
Block a user