ptos/amd64: frame: Push trapframe *after* swapgs

Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
2026-07-14 22:10:54 +00:00
parent 069c51d2e2
commit 1eed5f511d
+2 -3
View File
@@ -73,13 +73,12 @@
*/
#define INTR_ENTRY(VEC) ;\
cld ;\
push $0 ;\
_TRAP_PUSHALL(VEC) ;\
testb $3, 8(%rsp) ;\
jz 1f ;\
lfence ;\
swapgs ;\
1:
1: push $0 ;\
_TRAP_PUSHALL(VEC) ;\
/*
* Interrupt exit macro used when there is no error code