Compare commits

...

3 Commits

Author SHA1 Message Date
Quinten Kock 21a793d211 Fix compiler warnings 2020-12-04 21:36:43 +01:00
Quinten Kock 42cf96ab80 add .rgignore 2020-12-04 21:34:16 +01:00
Quinten Kock cb463cf949 Fix stivale2 printing on i386 2020-12-04 21:33:56 +01:00
7 changed files with 10 additions and 7 deletions

1
.rgignore Normal file
View File

@ -0,0 +1 @@
/ext/

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);

View File

@ -19,7 +19,7 @@ void print_stivale2(struct stivale2_struct *info) {
printf("Memmap (%d entries):\n", m->entries);
for (size_t i = 0; i < m->entries; i++) {
struct stivale2_mmap_entry me = m->memmap[i];
printf("\t[%x+%h] %x\n", me.base, me.length, me.type);
printf("\t[%x+%h] %x\n", (size_t)me.base, (size_t)me.length, me.type);
}
break;
}