kernel-mode #1

Manually merged
anton merged 69 commits from kernel-mode into master 2021-11-16 08:02:40 +01:00
Showing only changes of commit baa1f24eb7 - Show all commits

View File

@ -50,7 +50,7 @@ class CpuTrap(BaseException):
@property
def mcause(self):
return (self.code << 31) + self.interrupt
return (self.interrupt << 31) + self.code
def __repr__(self):
name = "Reserved interrupt({}, {})".format(self.interrupt, self.code)