diff --git a/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.S b/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.S index e19afbe14d..627f3e513c 100644 --- a/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.S +++ b/UefiCpuPkg/Library/CpuExceptionHandlerLib/Ia32/ExceptionHandlerAsm.S @@ -578,7 +578,7 @@ DoReturn: pushl -8(%esp) # save EIP in new location pushl -8(%esp) # save EFLAGS in new location popfl # restore EFLAGS - retf # far return + lret # far return DoIret: iretl