Skip to content

Commit 1b55188

Browse files
committed
feat(mem): add memory permissions to regions
Signed-off-by: Daniel Oliveira <[email protected]>
1 parent ad18c77 commit 1b55188

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/core/inc/mem.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515

1616
#ifndef __ASSEMBLER__
1717

18+
enum MEM_PERMISSIONS {
19+
MEM_RWX = 0, // This variant always has to be zero and therefore the first one
20+
MEM_RX,
21+
};
22+
1823
struct ppages {
1924
paddr_t base;
2025
size_t num_pages;
@@ -34,6 +39,7 @@ struct page_pool {
3439
struct mem_region {
3540
paddr_t base;
3641
size_t size;
42+
enum MEM_PERMISSIONS perms;
3743
struct page_pool page_pool;
3844
};
3945

0 commit comments

Comments
 (0)