Add a proper vfs driver into the kernel which handles file operations,

fix munmap number, remove the draw calls, make address space an option,
copy only the top 256 bytes of the HHDM and map the ELF code inside
userspace, add safe copying from userspace
This commit is contained in:
csd4ni3l
2026-05-09 11:36:48 +02:00
parent 674d68cdc5
commit 925b2bc8d2
17 changed files with 409 additions and 71 deletions
+1 -2
View File
@@ -39,7 +39,7 @@ impl Locked<Scheduler> {
let mut guard = without_interrupts(|| self.lock());
let pid = guard.next_pid;
guard.next_pid += 1;
let process = Process::new(pid, entry_point, stack_top, heap_base, heap_base)?;
let process = Process::new(pid, entry_point, stack_top, heap_base, heap_base);
guard.processes.insert(pid, process);
Some(pid)
@@ -52,7 +52,6 @@ impl Locked<Scheduler> {
};
set_current_pid(Some(pid));
enter_usermode(entry_point as u64, (stack_top & !0xF) - 8);
}