From 29cdfa1753f47a234d7cc5d1a82996a8b665101b Mon Sep 17 00:00:00 2001 From: Lizzy Fleckenstein Date: Thu, 21 Dec 2023 04:37:35 +0100 Subject: compile interrupt handler with -mgeneral-regs-only --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 2764705..7b34c01 100644 --- a/Makefile +++ b/Makefile @@ -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 $@ -- cgit v1.2.3