Present common MMU flags in common MMU driver header

Flags to use for intermediate page tables, as well as leaf entries
This commit is contained in:
Ville Juven 2021-12-28 16:11:57 +02:00 committed by Xiang Xiao
parent 33435e76da
commit e676d2985d

View File

@ -61,6 +61,15 @@
#define PTE_LEAF_MASK (7 << 1)
/* Flags for page tables */
#define MMU_PGT_FLAGS (PTE_G)
/* Flags for user FLASH (RX) and user RAM (RW) */
#define MMU_UTEXT_FLAGS (PTE_R | PTE_X | PTE_U | PTE_G)
#define MMU_UDATA_FLAGS (PTE_R | PTE_W | PTE_U | PTE_G)
/* SvX definitions, only Sv39 is currently supported, but it should be
* trivial to extend the driver to support other SvX implementations
*