ptos/amd64: frame: Push trapframe *after* swapgs
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user