In our endeavor to write a boot loader for a toy operating system, we’ve come far already. Our boot loader does the following so far:
- Setup data segments
- Reset the drive system
- Write a “loading” message
- Find the kernel file on disk, using parameters found in the boot sector
- Read the FAT table into memory
- Read the kernel file into memory, using the FAT table
- Reboot gracefully if the file could not be found or if reading fails
We are now in a position to put all the code fragments together and compile our boot loader. We’ll also add some initial code to our kernel, so that it can say “Hello”.


