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) ;\
|
#define INTR_ENTRY(VEC) ;\
|
||||||
cld ;\
|
cld ;\
|
||||||
push $0 ;\
|
|
||||||
_TRAP_PUSHALL(VEC) ;\
|
|
||||||
testb $3, 8(%rsp) ;\
|
testb $3, 8(%rsp) ;\
|
||||||
jz 1f ;\
|
jz 1f ;\
|
||||||
lfence ;\
|
lfence ;\
|
||||||
swapgs ;\
|
swapgs ;\
|
||||||
1:
|
1: push $0 ;\
|
||||||
|
_TRAP_PUSHALL(VEC) ;\
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Interrupt exit macro used when there is no error code
|
* Interrupt exit macro used when there is no error code
|
||||||
|
|||||||
Reference in New Issue
Block a user