or ah, 1 ; set LME\r
wrmsr\r
mov eax, cr0\r
- bts eax, 31\r
+ bts eax, 31 ; set PG\r
mov cr0, eax ; enable paging\r
- retf\r
+ retf ; topmost 2 dwords hold the address\r
@@: ; long mode starts here\r
- DB 67h, 48h\r
+ DB 67h, 48h ; 32-bit address size, 64-bit operand size\r
mov ebx, [esp] ; mov rbx, [esp]\r
DB 67h, 48h\r
mov ecx, [esp + 8] ; mov rcx, [esp + 8]\r
DB 48h\r
add esp, -20h ; add rsp, -20h\r
call ebx ; call rbx\r
- jmp $\r
+ hlt ; no one should get here\r
InternalX86EnablePaging64 ENDP\r
\r
END\r