summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-21 08:56:51 +0100
committerLizzy Fleckenstein <lizzy@vlhl.dev>2023-12-21 08:56:51 +0100
commit5b61e495721fe414e43cc52298987f02c9bce24c (patch)
treec3249ee6d0129e40c2f2310dd7b187804aed37c1 /Makefile
parentb62ea8cffcf257f64215bd2c480dbd8990814f42 (diff)
downloadcuddles-5b61e495721fe414e43cc52298987f02c9bce24c.tar.xz
debug: add register watchdog
to detect potential changes that ISRs might make to registers
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 5a50a97..3b1a428 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,8 @@ STAGE3_C = \
STAGE3 = $(STAGE3_C) \
stage3/isr.o \
stage3/yield.o \
- stage3/paging.o
+ stage3/paging.o \
+ stage3/watchdog.o
PAD_BOUNDARY = pad() { truncate -s $$(echo "($$(du -b $$1 | cut -f1)+$$2-1)/$$2*$$2" | bc) $$1; }; pad
DISAS = objdump -b binary -D -M intel -m i386:x86-64 stage3.bin --adjust-vma 0x9000
@@ -80,8 +81,8 @@ GIT_VERSION := $(shell git describe --tags 2>/dev/null || git rev-parse --short
stage3/version.c: .version-$(GIT_VERSION)
echo -e "#include \"def.h\"\nstr version = S(\"$(GIT_VERSION)\");" > $@
-stage3/isr.asm: stage3/isr.lua
- lua stage3/isr.lua > stage3/isr.asm
+stage3/%.asm: stage3/%.lua
+ lua $< > $@
stage3/font.c: stage3/font_builtin.c