Implement proc_map () and proc_unmap () syscalls
All checks were successful
Build documentation / build-and-deploy (push) Successful in 21s

This commit is contained in:
2026-01-06 23:32:11 +01:00
parent 9f107a1a5e
commit 28aef30f77
15 changed files with 155 additions and 18 deletions

View File

@@ -1,9 +1,12 @@
#include <limits.h>
#include <m/mem.h>
#include <m/proc.h>
#include <string/string.h>
void app_main (void) {
m_proc_test ();
m_proc_test ();
m_proc_test ();
m_proc_test ();
m_proc_map (M_PROC_MAP_BASE, 1, PM_PRESENT | PM_RW | PM_USER);
memset ((void*)M_PROC_MAP_BASE, 0, M_PAGE_SIZE);
m_proc_unmap (M_PROC_MAP_BASE, 1);
}