From 2725b95a1f78d2feac553d37252f2e560c2f9aac Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Fri, 1 Aug 2025 21:03:16 +0200 Subject: 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 --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 51493cd..040c846 100644 --- a/Makefile +++ b/Makefile @@ -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 -- cgit v1.2.3