ptos/amd64: frame: Always iretq in INTR_EXIT()
Signed-off-by: Chloe M. <chloe@mensia.org>
This commit is contained in:
@@ -85,11 +85,11 @@
|
|||||||
* pushed onto the stack.
|
* pushed onto the stack.
|
||||||
*/
|
*/
|
||||||
#define INTR_EXIT() ;\
|
#define INTR_EXIT() ;\
|
||||||
_POP_FRAME() ;\
|
_TRAP_POPALL() ;\
|
||||||
testb $3, 8(%rsp) ;\
|
testb $3, 8(%rsp) ;\
|
||||||
jz 1f ;\
|
jz 1f ;\
|
||||||
lfence ;\
|
lfence ;\
|
||||||
swapgs ;\
|
swapgs ;\
|
||||||
1:
|
1: iretq
|
||||||
|
|
||||||
#endif /* !_MACHINE_FRAMEASM_H_ */
|
#endif /* !_MACHINE_FRAMEASM_H_ */
|
||||||
|
|||||||
Reference in New Issue
Block a user