Entering Long Mode Directly: Difference between revisions

[unchecked revision][unchecked revision]
Content deleted Content added
Combuster (talk | contribs)
m 64+16=79?!
Nicola (talk | contribs)
Added notes about the code, added extra comments
Line 139:
cli ;Interupts are disabled because no IDT has been set up
 
mov edi,0x00b8000 ;Display:"Put long mode kernel here.__"
mov rax,0x0720077407750750 ;at the top left corner of screen
mov [edi],rax
mov rax,0x0767076e076f076c
Line 157:
jmp $ ;Hang the system
</pre>
 
== Notes about the code ==
# This code should work fine if being run as MBR (when all segment registers set to zero)
# As noted in code comments, only 2MB is mapped
# The code doesn't check CPU type, so x86 CPU (ie .486 or before) won't fit to run
 
== See Also ==