mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
riscv/pmp: fix bug: PMP_CFG_FLAG_MASK makes pmp cfg fail.
This commit is contained in:
committed by
Petro Karashchenko
parent
476770e9fd
commit
96b0209366
@@ -58,7 +58,7 @@
|
||||
#define BLOCK_ALIGN_MASK (MIN_BLOCK_SIZE - 1)
|
||||
|
||||
#define PMP_CFG_BITS_CNT (8)
|
||||
#define PMP_CFG_FLAG_MASK (0xFF)
|
||||
#define PMP_CFG_FLAG_MASK ((uintptr_t)0xFF)
|
||||
|
||||
#define PMP_CFG_CNT_IN_REG (PMP_XLEN / PMP_CFG_BITS_CNT)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user