aboutsummaryrefslogtreecommitdiff
path: root/sys/include
diff options
context:
space:
mode:
Diffstat (limited to 'sys/include')
-rw-r--r--sys/include/arch/amd64/frameasm.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/include/arch/amd64/frameasm.h b/sys/include/arch/amd64/frameasm.h
index 8983d36..41c9ebe 100644
--- a/sys/include/arch/amd64/frameasm.h
+++ b/sys/include/arch/amd64/frameasm.h
@@ -126,7 +126,7 @@
*/
#define TRAPENTRY(ENTLABEL, TRAPNO) \
ENTLABEL: \
- testq $0x3, 8(%rsp) ; \
+ testq $0x3, 16(%rsp) ; \
jz 1f ; \
lfence ; \
swapgs ; \
@@ -134,7 +134,7 @@
mov %rsp, %rdi ; \
call trap_handler ; \
pop_trapframe_ec ; \
- testq $0x3, 8(%rsp) ; \
+ testq $0x3, 16(%rsp) ; \
jz 2f ; \
lfence ; \
swapgs ; \