Fix compiler warnings

This commit is contained in:
Quinten Kock 2020-12-04 21:36:43 +01:00
parent 42cf96ab80
commit 21a793d211
5 changed files with 8 additions and 6 deletions

View File

@ -27,11 +27,12 @@ default: bin/$(TARGET)-$(ARCH)
all: $(ARCHES)
$(ARCHES):
$(MAKE) ARCH=$@
@$(MAKE) ARCH=$@
bin/$(TARGET)-$(ARCH): $(OBJ)
@mkdir -p $(@D)
$(LD) $(LDFLAGS) $(OBJ) -o $@
@echo Linking $@
@$(LD) $(LDFLAGS) $(OBJ) -o $@
obj/$(ARCH)/%.o: src/%.c $(HFILES)
@mkdir -p $(@D)

View File

@ -1,5 +1,6 @@
#include "vga.h"
#include <hal/ops.h>
#include <print/print.h>
void panic(const char *message, const char *filename, int line) {
vga_clear(VGA_BLUE);