diff options
| author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-10 16:21:05 +0100 |
|---|---|---|
| committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-10 16:21:05 +0100 |
| commit | 7ecfb1b21cf00d7c622cb5be9b4e149e0971a49b (patch) | |
| tree | 053a09ec799b19033a23eba8247512ea2c205d7d /Makefile | |
| parent | 0451ead172447528ece5fb0fcbb461a986962532 (diff) | |
| download | cuddles-7ecfb1b21cf00d7c622cb5be9b4e149e0971a49b.tar.xz | |
handle interrupts
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,5 +1,7 @@ SHELL:=/bin/bash +# -mgeneral-regs-only only needed for interrupt handlers + CFLAGS:= \ -nostdlib \ -nostdinc \ @@ -7,14 +9,16 @@ CFLAGS:= \ -fno-stack-protector \ -nostartfiles \ -nodefaultlibs \ + -mgeneral-regs-only \ -Wall \ - -Wextra \ - -Werror + -Wextra STAGE3 = \ stage3/main.o \ stage3/gfx.o \ stage3/halt.o \ + stage3/interrupts.o \ + stage3/isr.o \ stage3/framebuffer.o \ stage3/memory.o \ stage3/memory2.o \ @@ -43,13 +47,16 @@ stage3/%.o: stage3/%.asm stage3/%.o: stage3/%.c cc $(CFLAGS) -c $< -o $@ +stage3/isr.asm: stage3/isr.lua + lua stage3/isr.lua > stage3/isr.asm + .PHONY: run clean flash disas map run: lizzyx.img echo c | bochs -q clean: - rm -rf stage3/*.o *.out *.img *.map + rm -rf stage3/*.o *.out *.img *.map stage3/isr.asm flash: lizzyx.img dd if=lizzyx.img of=$(DEV) |
