From 1768abb217f974cf96448ee847453b604800c546 Mon Sep 17 00:00:00 2001 From: Jon Santmyer Date: Fri, 4 Sep 2026 19:18:23 -0400 Subject: add generic initrd seek function. begin work on init loading --- arch/x86_64/hal/process.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'arch/x86_64/hal/process.c') diff --git a/arch/x86_64/hal/process.c b/arch/x86_64/hal/process.c index dd49456..fb295c0 100644 --- a/arch/x86_64/hal/process.c +++ b/arch/x86_64/hal/process.c @@ -12,7 +12,7 @@ static pcb_t *s_init_pcb = (pcb_t*)&s_init_pcb_bytes; void processing_setup(void (*process_main)) { - uintptr_t ksp = (uintptr_t)&s_init_pcb_bytes + 8; + uintptr_t ksp = ((uintptr_t)&s_init_pcb_bytes) + 0xFF0; s_init_pcb->ksp = (void*)ksp; s_init_pcb->pml4 = paging_get_pml4(); -- cgit v1.2.3