Fix a bug in exit_uefi_stack.

This commit is contained in:
Andrius Štikonas 2022-10-02 14:46:21 +01:00
parent d6d8b2b707
commit fd021cef8f
1 changed files with 1 additions and 1 deletions

View File

@ -4611,8 +4611,8 @@ enter_uefi_stack:
exit_uefi_stack:
mov [rip+temp_rax], rax # save RAX
pop rax # Save return address
mov rsp, [rip+user_stack] # restore user stack
mov [rip+uefi_stack], rsp # save system stack
mov rsp, [rip+user_stack] # restore user stack
push rax # Restore return address
mov rax, [rip+temp_rax] # restore RAX
ret