From 90c29fdde317c39384011a6ba97077c138f13ad6 Mon Sep 17 00:00:00 2001 From: Ada Christine Date: Sun, 2 Feb 2025 22:33:13 +0000 Subject: no wait, cleanup --- boot/main.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'boot/main.c') diff --git a/boot/main.c b/boot/main.c index 55eab00..d040e98 100644 --- a/boot/main.c +++ b/boot/main.c @@ -1,5 +1,7 @@ #include "kjarna.h" #include "fake_syscall.h" +#include +#include int main(int argc, char **argv) { @@ -7,6 +9,9 @@ int main(int argc, char **argv) (void)argv; struct kjarna_boot_image boot_image = get_boot_image(); - fake_syscall_start(&boot_image); + int result = fake_syscall_start(&boot_image); + printf("boot service exited with status %d\nhalting.\n", result); + munmap(boot_image.image_buffer.base, boot_image.image_buffer.length); + munmap(boot_image.stack_buffer.base, boot_image.stack_buffer.length); } -- cgit v1.3.1-1-g115d