From 4130fbcdcfd2baa6d1f9b065ce34afa2a339f670 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Mon, 17 Jan 2022 14:03:39 +0000 Subject: entering the idle task appears to work --- kc/core/exceptions.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kc/core/exceptions.S') 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 -- cgit v1.3.1-1-g115d