summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2025-07-17Add small ATA driver to load kernelCarlos Maiolino
Write ata_lba_read routine to load 100 disk sectors from the disk into memory address 0x00100000 (1MiB). Once the data is loaded, jump to that Address Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Start writing the kernel and add a linker scriptCarlos Maiolino
Move the code unders [BITS 32] label to its own file to be loaded as a kernel by the boot loader. Add a linker script to link the bootloader and the kernel in a single binary file. Add a build script to make it easier to use the cross compiler Update the Makefile to build everything and pack it into the os.bin Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Add build scriptCarlos Maiolino
Add a small script to use the cross compiler (from my machine), to build the kernel Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Enable A20 lineCarlos Maiolino
Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Restructure project folderCarlos Maiolino
Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Setup GDT and load protected modeCarlos Maiolino
Create a GDT table and use it to switch CPU into protected mode. This also gets rid of the print routines. Giving we won't have access to the BIOS interrupts once we switch the CPU to protected mode, they are pointless. Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Prepare for enabling protected modeCarlos Maiolino
Clean up all testing/playground code to prepare the bootloader to enable protected mode. Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Add gitignoreCarlos Maiolino
Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Remove interrupt tableCarlos Maiolino
Remove interrupt table setup and testing, IRQs will be added later on an interrupt descriptor table. For some reason once the exception is handled, the disk read fails, so just remove it for now Signed-off-by: Carlos Maiolino <[email protected]>
2025-07-17Initial commitCarlos Maiolino
Add a bootloader and a hello message. Signed-off-by: Carlos Maiolino <[email protected]>