diff options
| author | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 19:18:23 -0400 |
|---|---|---|
| committer | Jon Santmyer <jon@jonsantmyer.com> | 2026-09-04 19:18:23 -0400 |
| commit | 1768abb217f974cf96448ee847453b604800c546 (patch) | |
| tree | 2dccae458433118e02d25d82a66052a747c59c51 /arch/x86_64/hal/process.c | |
| parent | 8251da342161767fe203627223ccd4a7026701c6 (diff) | |
| download | jove-kernel-1768abb217f974cf96448ee847453b604800c546.tar.gz jove-kernel-1768abb217f974cf96448ee847453b604800c546.tar.bz2 jove-kernel-1768abb217f974cf96448ee847453b604800c546.zip | |
add generic initrd seek function. begin work on init loading
Diffstat (limited to 'arch/x86_64/hal/process.c')
| -rw-r--r-- | arch/x86_64/hal/process.c | 2 |
1 files changed, 1 insertions, 1 deletions
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(); |
