Panic and interrupts

Added a basic kernel panic function and interrupt support for x86_64 (mostly for exception handling)
This commit is contained in:
Matheus
2022-07-22 00:34:44 -03:00
parent d13f17b509
commit cae7428ed0
9 changed files with 236 additions and 2 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
objects := $(patsubst %.c,%.o,$(wildcard *.c))
objects := $(patsubst %.c,%.o,$(wildcard *.c)) israsm.o
subdirs=boot
OBJPATH=$(OBJDIR)/arch/${TARGET}/
export
@@ -11,3 +11,7 @@ all: $(objects) $(subdirs)
mkdir -p $(OBJPATH)
cp $@ $(OBJPATH)/$@
israsm.o: isr.asm
nasm -f elf64 -o $@ $<
mkdir -p $(OBJPATH)
cp $@ $(OBJPATH)/$@