Move platform-specific code for process loading/init for AMD64 to amd64/
All checks were successful
Build documentation / build-and-deploy (push) Successful in 49s

This commit is contained in:
2026-01-01 20:08:37 +01:00
parent 5e6bdcc52d
commit 121fb3b33c
7 changed files with 92 additions and 64 deletions

8
kernel/sys/proc.h Normal file
View File

@@ -0,0 +1,8 @@
#ifndef _KERNEL_SYS_PROC_H
#define _KERNEL_SYS_PROC_H
struct proc;
struct proc* proc_from_elf (uint8_t* elf_contents);
#endif // _KERNEL_SYS_PROC_H

9
kernel/sys/spin.h Normal file
View File

@@ -0,0 +1,9 @@
#ifndef _KERNEL_SYS_SPIN_H
#define _KERNEL_SYS_SPIN_H
#if defined(__x86_64__)
extern void amd64_spin (void);
#define spin amd64_spin
#endif
#endif // _KERNEL_SYS_SPIN_H