;------------------------------------------------------------------------------\r
InternalX86EnablePaging64 PROC\r
cli\r
- pop rax\r
+ pop rax ; skip the return address\r
call @Base\r
@Base:\r
add dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg\r
mov rsp, [esp + 18h]\r
add rsp, -20h\r
call rbx\r
- jmp $ ; halt processor if EntryPoint() returned\r
+ hlt ; halt processor if EntryPoint() returned\r
InternalX86EnablePaging64 ENDP\r
\r
END\r