aboutsummaryrefslogtreecommitdiff
path: root/kernel/inc
diff options
context:
space:
mode:
authorMarvin Borner2021-04-02 19:04:34 +0200
committerMarvin Borner2021-04-02 19:11:56 +0200
commitfe468b476d567b6aa0695a030c408ccf46278c7d (patch)
tree36b664e7f4ecbf991c7a563af75d81a4a604c45f /kernel/inc
parentb62b9d1f33a4911feb9f318ece0c1565f27abf8d (diff)
Mapped .text and .rodata readonly
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 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);