diff options
author | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-21 04:37:35 +0100 |
---|---|---|
committer | Lizzy Fleckenstein <lizzy@vlhl.dev> | 2023-12-21 04:37:35 +0100 |
commit | 29cdfa1753f47a234d7cc5d1a82996a8b665101b (patch) | |
tree | 7f0eeb345cae1002155bdba9e1b287aed28ff588 | |
parent | 5129e9f9f732f7d2829f02597cdb4ad2c0f3d856 (diff) | |
download | cuddles-29cdfa1753f47a234d7cc5d1a82996a8b665101b.tar.xz |
compile interrupt handler with -mgeneral-regs-only
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,7 +1,5 @@ SHELL:=/bin/bash -# -mgeneral-regs-only only needed for interrupt handlers - override CFLAGS += \ -nostdlib \ -nostdinc \ @@ -65,6 +63,9 @@ fs/dbg/kernel.dis.asm: stage3.bin stage3/%.o: stage3/%.asm nasm -f elf64 $< -o $@ +stage3/interrupts.o: stage3/interrupts.c + gcc $(CFLAGS) -mgeneral-regs-only -c $< -o $@ + stage3/%.o: stage3/%.c gcc $(CFLAGS) -c $< -o $@ |