Fix user PGT flags (don't map them globally)
A global mapping means it exists in all address environments. Only kernel mappings should be mapped as global.
This commit is contained in:
parent
56ade25f31
commit
0a1a1e9b79
@ -61,14 +61,14 @@
|
||||
|
||||
#define PTE_LEAF_MASK (7 << 1)
|
||||
|
||||
/* Flags for page tables */
|
||||
/* Flags for user page tables */
|
||||
|
||||
#define MMU_PGT_FLAGS (PTE_G)
|
||||
#define MMU_UPGT_FLAGS (0)
|
||||
|
||||
/* 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)
|
||||
#define MMU_UTEXT_FLAGS (PTE_R | PTE_X | PTE_U)
|
||||
#define MMU_UDATA_FLAGS (PTE_R | PTE_W | PTE_U)
|
||||
|
||||
/* SvX definitions, only Sv39 is currently supported, but it should be
|
||||
* trivial to extend the driver to support other SvX implementations
|
||||
|
Loading…
Reference in New Issue
Block a user