aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-03-14 18:42:54 +0100
committerMarvin Borner2021-03-14 18:42:54 +0100
commit665b00e7f44e5088b134d111ba1d5226c11f0ae8 (patch)
tree49f5a9b0ea82d8c6fd067f5acfbc08607109c0bd /kernel/inc
parentb7ae466ac77c68d0a1e1a124e6ea8c4cfc8d7100 (diff)
Some security measurements
Diffstat (limited to 'kernel/inc')
-rw-r--r--kernel/inc/mm.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/inc/mm.h b/kernel/inc/mm.h
index d3e37f6..fa2ebd1 100644
--- a/kernel/inc/mm.h
+++ b/kernel/inc/mm.h
@@ -25,6 +25,7 @@ void physical_free(struct memory_range range);
#define PAGE_SIZE 0x1000
#define PAGE_COUNT 1024
+#define PAGE_KERNEL_COUNT 256
#define PAGE_ALIGN(x) ((x) + PAGE_SIZE - ((x) % PAGE_SIZE))
#define PAGE_ALIGNED(x) ((x) % PAGE_SIZE == 0)
#define PAGE_ALIGN_UP(x) (((x) % PAGE_SIZE == 0) ? (x) : (x) + PAGE_SIZE - ((x) % PAGE_SIZE))
@@ -100,6 +101,7 @@ 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);
void memory_install(struct mem_info *mem_info, struct vid_info *vid_info);