Comment Comment by 5- note that you can switch to long mode directly, without going into protected mode first, with way less code:https://wiki.osdev.org/Entering_Long_Mode_Directlyi've had a bootloader for a small 64-bit kernel based on this that fit comfortably into the bootsector, including loading the kernel from disk and setting up vesa modes, no stage2 required. parent 5- 2 years ago
https://wiki.osdev.org/Entering_Long_Mode_Directly
i've had a bootloader for a small 64-bit kernel based on this that fit comfortably into the bootsector, including loading the kernel from disk and setting up vesa modes, no stage2 required.