blob: d040e986f03e1c01b81d9b7d95aec420c982ef94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "kjarna.h"
#include "fake_syscall.h"
#include <libc/stdio.h>
#include <posix/sys/mman.h>
int main(int argc, char **argv)
{
(void)argc;
(void)argv;
struct kjarna_boot_image boot_image = get_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);
}
|