diff options
| author | Ada Christine <adachristine18@gmail.com> | 2022-01-17 14:03:39 +0000 |
|---|---|---|
| committer | Ada Christine <adachristine18@gmail.com> | 2022-01-17 14:03:39 +0000 |
| commit | 4130fbcdcfd2baa6d1f9b065ce34afa2a339f670 (patch) | |
| tree | 5b44d1ca1c17bbb57dfb577a54e567086fa9690f /kc/core/exceptions.S | |
| parent | 8c56039ca130dfef1f0bf204cc702eeb10801379 (diff) | |
entering the idle task appears to work
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 |
