Compare commits
3 Commits
fb981bf994
...
21a793d211
| Author | SHA1 | Date |
|---|---|---|
|
|
21a793d211 | |
|
|
42cf96ab80 | |
|
|
cb463cf949 |
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue