Paging: Difference between revisions

[unchecked revision][unchecked revision]
Line 141:
mov cr0, ebx
 
; Now reload the segment registers (CS, DS, SS, etc.) with 64-bitthe appropriate segment selectors...
 
mov ax, DATA_SEL
Line 149:
mov gs, ax
; Reload CS with a 64-bit code selector by performing a long jmp
 
jmp CODE_SEL:reloadCS
 
[BITS 64]
reloadCS:
hlt ; Done. Replace these lines with your own code
jmp reloadCS
</source>
Anonymous user