Writing a BIOS bootloader for 64-bit mode from scratch

The content discusses the process of setting up an x86_64 CPU, transitioning from real mode to long mode. Detailed steps are provided on creating a boot sector, loading stage 2 from disk, and switching to protected mode. Unique information includes coding examples, linker scripts, GDT setup for protected and long modes, and building a page table for long mode with Physical Address Extension. Controversially, the author mentions utilizing unsafe techniques and the absence of BIOS routines in protected mode. Surprisingly, the content showcases the readable nature of the Intel manual and valuable resources for learning.

https://thasso.xyz/2024/07/13/setting-up-an-x86-cpu.html

To top