diff options
Diffstat (limited to 'kc/core/exceptions.S')
| -rw-r--r-- | kc/core/exceptions.S | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kc/core/exceptions.S b/kc/core/exceptions.S index 46b9947..0a5b760 100644 --- a/kc/core/exceptions.S +++ b/kc/core/exceptions.S @@ -26,6 +26,7 @@ .macro ISR_RESTORE_REGISTERS // restore all the registers + pop %r15 pop %r14 pop %r13 pop %r12 @@ -57,7 +58,7 @@ page_fault_isr: ISR_STORE_REGISTERS /* collect parameters for page fault handler */ - mov 48(%rsp), %rdi /* error code is first parameter */ + mov 120(%rsp), %rdi /* error code is first parameter */ mov %cr2, %rsi /* PFLA is next parameter */ /* stack has to be aligned */ ISR_CALL page_fault_handler |
