diff options
| author | Carlos Maiolino <[email protected]> | 2025-08-01 21:03:16 +0200 |
|---|---|---|
| committer | Carlos Maiolino <[email protected]> | 2025-08-01 21:03:16 +0200 |
| commit | 2725b95a1f78d2feac553d37252f2e560c2f9aac (patch) | |
| tree | 3e68aaf21c25fc2a46e3ee29fb4f23b188e3b3a4 /Makefile | |
| parent | 57d8e2b236c7a185bdd941c247ef0dcc5961a24e (diff) | |
Setup interrupt handling
Remap master PIC to IOAddress 0x20 to avoid collisions with CPU
exceptions.
Setup a default interrupt handler and map all interrupts to this handler
by default.
Setup a Keyboard interrupt handler for testing purposes
Wire everything up in the Makefile
Signed-off-by: Carlos Maiolino <[email protected]>
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -13,7 +13,8 @@ KOBJ_FILES = $(KERNEL_ASM_OBJ) \ $(KERNEL_OBJ) \ ./build/vga.o \ ./build/idt/idt.asm.o \ - ./build/idt/idt.o + ./build/idt/idt.o \ + ./build/io/io.asm.o BOOT_TGT =./bin/boot.bin @@ -57,6 +58,8 @@ $(BUILD_DIR)/idt/idt.asm.o: ./src/idt/idt.asm $(BUILD_DIR)/idt/idt.o: ./src/idt/idt.c ./build/vga.o $(KOBJ_LIBS) i686-elf-gcc $(INCLUDES) $(FLAGS) -std=gnu99 -c ./src/idt/idt.c -o $(BUILD_DIR)/idt/idt.o +$(BUILD_DIR)/io/io.asm.o: ./src/io/io.asm + nasm -f elf -g ./src/io/io.asm -o $(BUILD_DIR)/io/io.asm.o $(KOBJ_LIBS): i686-elf-gcc $(INCLUDES) $(FLAGS) -std=gnu99 -c ./src/lib/string.c -o $(BUILD_DIR)/string.o @@ -70,4 +73,5 @@ clean: rm -f build/string.o rm -f build/idt/idt.asm.o rm -f build/idt/idt.o + rm -f build/io/io.asm.o rm -f bin/os.bin |
