aboutsummaryrefslogtreecommitdiff
path: root/src/elf.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2024-07-07 14:34:39 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2024-07-07 14:34:39 +0300
commitd592abd8ccc4026c51e196777031eb65c4acc4de (patch)
treebfcffec608ede13653a21a56a5b731a4178ecda3 /src/elf.c
parentd1c5e2700add7627e22c49a6021f200f03e8a62b (diff)
downloadkmi-d592abd8ccc4026c51e196777031eb65c4acc4de.tar.gz
kmi-d592abd8ccc4026c51e196777031eb65c4acc4de.zip
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.
Diffstat (limited to 'src/elf.c')
-rw-r--r--src/elf.c2
1 files changed, 1 insertions, 1 deletions
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);