From cf0d23b6fed2105b7b7d1661eedba0157bd484ac Mon Sep 17 00:00:00 2001 From: Rafal Kupiec Date: Mon, 6 May 2024 16:47:12 +0200 Subject: [PATCH] Correct a typo causing page fault during int handling after switching to new kernel stack --- xtoskrnl/ar/amd64/archsup.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xtoskrnl/ar/amd64/archsup.S b/xtoskrnl/ar/amd64/archsup.S index 64b0b61..1c18ab2 100644 --- a/xtoskrnl/ar/amd64/archsup.S +++ b/xtoskrnl/ar/amd64/archsup.S @@ -102,7 +102,7 @@ ArpTrap\Vector: movdqa %xmm0, TrapXmm0(%rbp) /* Test previous mode and swap GS if needed */ - movl $0, TrapPreviousMode(%ebp) + movl $0, TrapPreviousMode(%rbp) mov %cs, %ax and $1, %al mov %al, TrapPreviousMode(%rbp)