Commit c1dbc6aa authored by Juan-Luis de Sousa-Valadas Castaño's avatar Juan-Luis de Sousa-Valadas Castaño Committed by GitHub
Browse files

Update boot_process.md

bootsector.asm has been moved from kernel/asm/bootsector.asm
to bootloader/${ARCH}/bootsector.asm
parent 856cfbf7
# Boot Process
## Bootloader
The first code to be executed is the boot sector in `kernel/asm/bootsector.asm`. This loads the bootloader from the first partition. In Redox, the bootloader finds the kernel and loads it in full at address 0x100000. It also initializes the memory map and the VESA display mode, as these rely on BIOS functions that cannot be accessed easily once control is switched to the kernel.
The first code to be executed is the boot sector in `bootloader/${ARCH}/bootsector.asm`. This loads the bootloader from the first partition. In Redox, the bootloader finds the kernel and loads it in full at address 0x100000. It also initializes the memory map and the VESA display mode, as these rely on BIOS functions that cannot be accessed easily once control is switched to the kernel.
## Kernel
The kernel is entered through the interrupt table, with interrupt 0xFF. This interrupt is only available in the bootloader. By utilizing this method, all kernel entry can be contained to a single function, the `kernel` function, found in `kernel/main.rs`, that serves as the entry point in the `kernel.bin` executable file.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment