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.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Scratch

Scratch

Photo of BIOS

BIOS

Photo of bit mode

bit mode

Related news:

News photo

Build and train GPT-2 from scratch using PyTorch

News photo

Writing an IR from Scratch and survive to write a post

News photo

Let's write a video game from scratch like it's 1987