aboutsummaryrefslogtreecommitdiff
path: root/x86_64
diff options
context:
space:
mode:
Diffstat (limited to 'x86_64')
-rw-r--r--x86_64/locore.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/x86_64/locore.S b/x86_64/locore.S
index 8f39a677..376f41c1 100644
--- a/x86_64/locore.S
+++ b/x86_64/locore.S
@@ -435,10 +435,10 @@ ENTRY(start_timer)
ENTRY(t_dbl_fault)
INT_FIX
cli /* disable interrupts that might corrupt the state*/
+ pushq $(T_DOUBLE_FAULT) /* indicate fault type */
pusha
movq %cr2,%rax
movq %rax,R_CR2-R_R15(%rsp) /* CR2 might contain the faulting address */
- subq $48,%rsp // FIXME remove when segments are cleaned up
movq %rsp,%rdi /* pass the saved state */
call handle_double_fault
jmp cpu_shutdown /* reset */