X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseLib%2FX64%2FEnablePaging64.asm;h=c54843008a4554b19f770861afe28b9a3520cdae;hp=459120a886cce71005364a05b89af7ce8394cb55;hb=a9a812a0ed4ab3d83941fdc6da281aebdb9bb296;hpb=741fb364170375f89aa9c29488cc402db07a3776 diff --git a/MdePkg/Library/BaseLib/X64/EnablePaging64.asm b/MdePkg/Library/BaseLib/X64/EnablePaging64.asm index 459120a886..c54843008a 100644 --- a/MdePkg/Library/BaseLib/X64/EnablePaging64.asm +++ b/MdePkg/Library/BaseLib/X64/EnablePaging64.asm @@ -36,7 +36,7 @@ ;------------------------------------------------------------------------------ InternalX86EnablePaging64 PROC cli - pop rax + pop rax ; skip the return address call @Base @Base: add dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg @@ -58,7 +58,7 @@ InternalX86EnablePaging64 PROC mov rsp, [esp + 18h] add rsp, -20h call rbx - jmp $ ; halt processor if EntryPoint() returned + hlt ; halt processor if EntryPoint() returned InternalX86EnablePaging64 ENDP END