From 18c389411a0f6283c1b6dffc78bbcfcb237e367b Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Tue, 19 Aug 2025 16:16:10 -0400 Subject: move pager to libjove --- apps/init/main.c | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) (limited to 'apps/init/main.c') 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(); -- cgit v1.2.1