summaryrefslogtreecommitdiffstats
path: root/apps/init/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/init/main.c')
-rw-r--r--apps/init/main.c22
1 files changed, 3 insertions, 19 deletions
diff --git a/apps/init/main.c b/apps/init/main.c
index 17b825e..9ed2579 100644
--- a/apps/init/main.c
+++ b/apps/init/main.c
@@ -9,11 +9,6 @@
/**This program acts as a memory and process server.*/
-#define INIT_HEAP_START_BYTES 8192
-__attribute__((section(".bss.heap")))
-uint8_t init_heap[INIT_HEAP_START_BYTES];
-size_t init_heap_start = (uintptr_t)init_heap;
-
__attribute__((noreturn))
static void
spin_fail(void)
@@ -21,23 +16,12 @@ spin_fail(void)
for(;;);
}
-void*
-init_bumpalloc(size_t bytes)
-{
- void *r = (void*)init_heap_start;
- init_heap_start += bytes;
- return r;
-}
-
-KernelObjectDirectory untypedDirectory;
-
void
main(void *message_ptr)
{
- libjove_init(
- INIT_OBJECT_MESSAGE,
- message_ptr);
- _jove_alloc = init_bumpalloc;
+ __jove_syscall_obj = INIT_OBJECT_MESSAGE;
+ __jove_syscall_ptr = message_ptr;
+ _jove_alloc_objdir_inplace(&__jove_untyped_directory, &__rootdir, INIT_OBJECT_UNTYPED_DIR);
jove_kprintf("Hello, Userland!\n");
pager_setup();