Get the latest tech news
Writing a BIOS bootloader for 64-bit mode from scratch
My personal blog about things I find interesting. Hit me up!
One can fit a surprising amount of stuff in 512 bytes, but it’s easiest to just load some more data from disk first. The linker script linker.ld is important because it makes sure that the code in our boot sector is relocated to the right address in the final image. In long mode with Physical Address Extension enabled (PAE, we’ll do that below ), a four level page table is used.
Or read this on Hacker News