riscv/pmp: fix bug: PMP_CFG_FLAG_MASK makes pmp cfg fail.

This commit is contained in:
dytang
2022-05-07 15:55:04 +08:00
committed by Petro Karashchenko
parent 476770e9fd
commit 96b0209366
+1 -1
View File
@@ -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)