5 #include "sw/device/silicon_creator/lib/epmp_test_unlock.h"
13 bool epmp_unlock_test_status(
void) {
20 const epmp_perm_t kPerm = kEpmpPermLockedReadWrite;
24 if (status_addr %
sizeof(uint32_t) != 0) {
30 .end = status_addr +
sizeof(uint32_t)};
31 epmp_state_configure_na4(kEntry, region, kPerm);
34 static_assert(kEntry == 6,
"PMP entry has changed, update CSR operations.");
35 CSR_WRITE(CSR_REG_PMPADDR6, status_addr /
sizeof(uint32_t));
37 << ((kEntry %
sizeof(uint32_t)) * 8));
40 if (!epmp_state_check()) {