diff options
author | Marvin Borner | 2021-03-15 22:54:54 +0100 |
---|---|---|
committer | Marvin Borner | 2021-03-15 22:54:54 +0100 |
commit | dc9f9f55cb6b38b87d8c228ae9abb4b53ebfb25c (patch) | |
tree | e4a51d5e94f963bcabe834b3ba535a8da871c42f /kernel/inc/mm.h | |
parent | 665b00e7f44e5088b134d111ba1d5226c11f0ae8 (diff) |
System hardening and errno impl
Diffstat (limited to 'kernel/inc/mm.h')
-rw-r--r-- | kernel/inc/mm.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/inc/mm.h b/kernel/inc/mm.h index fa2ebd1..98dcf46 100644 --- a/kernel/inc/mm.h +++ b/kernel/inc/mm.h @@ -101,7 +101,11 @@ void memory_map_identity(struct page_dir *dir, struct memory_range prange, u32 f void memory_free(struct page_dir *dir, struct memory_range vrange); void memory_switch_dir(struct page_dir *dir); void memory_backup_dir(struct page_dir **backup); -u8 memory_user_valid(u32 addr); + +// Bypass should almost never be used +void memory_bypass_enable(void); +void memory_bypass_disable(void); +u8 memory_valid(const void *addr); void memory_install(struct mem_info *mem_info, struct vid_info *vid_info); |