From 7f350e7ee1c2c38e5ac0b6c22c17388f6c78f0b5 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Wed, 10 Sep 2025 13:28:28 -0400 Subject: refactor paging code. regression on loading init program --- include/init.h | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) (limited to 'include/init.h') diff --git a/include/init.h b/include/init.h index aa722b1..2174785 100644 --- a/include/init.h +++ b/include/init.h @@ -1,9 +1,24 @@ #ifndef _JOVE_INIT_H #define _JOVE_INIT_H 1 -#ifdef __x86_64__ +#include -#endif +enum { + INIT_OBJECT_ROOTDIR = 0, + INIT_OBJECT_PAGEMAP, + INIT_OBJECT_PROCESSOR_DIR, + INIT_OBJECT_UNTYPED_DIR, + INIT_OBJECT_INITRD_DIR, + INIT_OBJECT_TCB, + INIT_OBJECT_MESSAGE, + INIT_OBJECT_LOG +}; + +#include "object.h" +extern objdir_t _initDirectory; + +uintptr_t init_alloc_pageframe(); +void init_map_pageframe(uintptr_t pptr, uintptr_t vptr, uint8_t pflags); void init_load(void); -- cgit v1.2.1