mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-08-05 18:26:19 -04:00
3
Boot Process
Baptiste Wicht edited this page 2014-01-21 11:28:25 -08:00
Edit: Now the bootloader loads the kernel directly from the disk in FAT32.
TODO Review this page.
More up to date version: http://www.baptiste-wicht.com/2013/12/thor-os-boot-process/
The boot of the operating system is made in several steps:
- The bootloader (ASM) is started from 0x07C0 in memory
- The bootloader reads the second sector of the floppy, loads it at 0x900 and jumps to it
- The second step bootloader (ASM) loads the operating system from the floppy, loads it at 0x1000 and jumps to it
- The kernel goes into protected mode, loads the GDT, goes into long mode, loads the IDT and setup ISRs and IRQs handlers and then it is ready for normal usage
- The kernel init the PIT and the keyboard and displays a shell. It is also responsible for configuring paging for dynamic memory allocation.