aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc/mm.h
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/inc/mm.h')
-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 5dee6d4..a0b39a5 100644
--- a/kernel/inc/mm.h
+++ b/kernel/inc/mm.h
@@ -17,6 +17,7 @@ struct memory_range {
* Lowlevel paging
*/
+void paging_disable(void);
void paging_enable(void);
void page_fault_handler(struct regs *r) NONNULL;
@@ -110,6 +111,7 @@ struct memory_proc_link {
#define MEMORY_NONE (0 << 0)
#define MEMORY_USER (1 << 0)
#define MEMORY_CLEAR (1 << 1)
+#define MEMORY_READONLY (1 << 2)
#define memory_range(base, size) ((struct memory_range){ (base), (size) })
struct memory_range memory_range_from(u32 base, u32 size);