Revert "x86/entry_32: Do not clobber user EFLAGS.ZF"

This reverts commit 632fba79b9.
This commit is contained in:
Ksawlii 2024-11-24 00:22:51 +01:00
parent 5e83655d80
commit e19e6b3388

View file

@ -939,8 +939,6 @@ SYM_FUNC_START(entry_SYSENTER_32)
/* Now ready to switch the cr3 */
SWITCH_TO_USER_CR3 scratch_reg=%eax
/* Clobbers ZF */
CLEAR_CPU_BUFFERS
/*
* Restore all flags except IF. (We restore IF separately because
@ -951,6 +949,7 @@ SYM_FUNC_START(entry_SYSENTER_32)
BUG_IF_WRONG_CR3 no_user_check=1
popfl
popl %eax
CLEAR_CPU_BUFFERS
/*
* Return back to the vDSO, which will pop ecx and edx.