Implement proc_map () and proc_unmap () syscalls
All checks were successful
Build documentation / build-and-deploy (push) Successful in 21s
All checks were successful
Build documentation / build-and-deploy (push) Successful in 21s
This commit is contained in:
11
init/init.c
11
init/init.c
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user