From d592abd8ccc4026c51e196777031eb65c4acc4de Mon Sep 17 00:00:00 2001 From: Kimplul Date: Sun, 7 Jul 2024 14:34:39 +0300 Subject: misc fixes + Align kernel to 2MiB boundary in u-boot + Optimize alignment functions a little bit, should still have to check on real hardware but 'feels' more clean + Add early boot debugging + Put extra cores we aren't ready to account for to sleep if/when they boot. + Make BASE_PAGE_SIZE constant on riscv64/32, helps the compiler with some alignment checks among other things. --- src/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/elf.c') diff --git a/src/elf.c b/src/elf.c index 5c2f9bd..29c9c09 100644 --- a/src/elf.c +++ b/src/elf.c @@ -69,7 +69,7 @@ static void __map_exec(struct tcb *t, vm_t bin, uint8_t ei_c, vm_t phstart, if (!start) return; /* out of memory or something */ - info("mapped ELF section to %x\n", start); + info("mapped ELF section to %lx\n", (long)start); uint8_t elf_flags = program_header_prop(ei_c, runner, p_flags); uint8_t uvflags = __elf_to_uvflags(elf_flags); -- cgit v1.3