diff --git a/Makefile b/Makefile index c06a307..8437214 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,9 @@ all: os-image run: all - qemu bin/os-image + qemu-system-x86_64 bin/os-image -os-image: bin/bootloader.bin bin/kernel.bin +os-image: bootloader.bin kernel.bin cat $^ > bin/os-image kernel.bin: bin/kernel_entry.o bin/kernel.o diff --git a/src/bootloader/bios.asm b/src/bootloader/bios.asm index 0796eea..ec08a80 100644 --- a/src/bootloader/bios.asm +++ b/src/bootloader/bios.asm @@ -1,7 +1,7 @@ ; EQUs -%include "equ/bios.asm" +%include "src/bootloader/equ/bios.asm" ; SRs -%include "bios/convert.asm" -%include "bios/print.asm" -%include "bios/disk.asm" +%include "src/bootloader/bios/convert.asm" +%include "src/bootloader/bios/print.asm" +%include "src/bootloader/bios/disk.asm" diff --git a/src/bootloader/bootloader.asm b/src/bootloader/bootloader.asm index a61e356..64553e6 100644 --- a/src/bootloader/bootloader.asm +++ b/src/bootloader/bootloader.asm @@ -20,9 +20,9 @@ jmp $ ; inf loop -%include "equ/ascii.asm" -%include "bios.asm" -%include "pm.asm" +%include "src/bootloader/equ/ascii.asm" +%include "src/bootloader/bios.asm" +%include "src/bootloader/pm.asm" BEGIN_PM: ; Inform of mode switch diff --git a/src/bootloader/pm.asm b/src/bootloader/pm.asm index 001aeec..3d4cef6 100644 --- a/src/bootloader/pm.asm +++ b/src/bootloader/pm.asm @@ -1,9 +1,9 @@ ; Utils -%include "equ/vga.asm" -%include "pm/vga/print.asm" +%include "src/bootloader/equ/vga.asm" +%include "src/bootloader/pm/vga/print.asm" ; GDT & switching to PM -%include "pm/gdt.asm" ; GDT defined here +%include "src/bootloader/pm/gdt.asm" ; GDT defined here ; Switching to PM [bits 16]