amd64: add extra information on fault
Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
parent
4096f03d32
commit
70d171fed8
3 changed files with 26 additions and 16 deletions
|
|
@ -9,6 +9,15 @@
|
|||
iretq
|
||||
.endm
|
||||
|
||||
.macro exception_err nr
|
||||
.global _exception_\nr
|
||||
_exception_\nr:
|
||||
mov rdi, \nr
|
||||
popq rsi
|
||||
call exception_handler
|
||||
iretq
|
||||
.endm
|
||||
|
||||
.macro irq nr
|
||||
.global _irq_\nr
|
||||
_irq_\nr:
|
||||
|
|
|
|||
Loading…
Reference in a new issue