;------------------------------------------------------------------------------\r
InternalX86EnablePaging64 PROC\r
cli\r
- mov dword ptr [rsp], @F ; offset for far retf, seg is the 1st arg\r
+ pop rax\r
+ call @Base\r
+@Base:\r
+ add dword ptr [rsp], @F - @Base ; offset for far retf, seg is the 1st arg\r
mov rax, cr4 ; mov eax, cr4\r
or al, (1 SHL 5)\r
mov cr4, rax ; enable PAE\r