Skip to content

Commit

Permalink
Update FALSE macro to false due to change in OpenSBI (#344)
Browse files Browse the repository at this point in the history
OpenSBI removed `TRUE/FALSE` macros with
riscv-software-src/opensbi@440fa81.
This simplifies experimentation with the latest OpenSBI versions.
philippgie authored Jul 31, 2023
1 parent 480c83f commit c4481fe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sm/src/pmp.c
Original file line number Diff line number Diff line change
@@ -253,7 +253,7 @@ int pmp_set_keystone(int region_idx, uint8_t perm)
LIST_OF_PMP_REGS
#undef X
default:
sm_assert(FALSE);
sm_assert(false);
}

/* TOR decoding with 2 registers */
@@ -267,7 +267,7 @@ int pmp_set_keystone(int region_idx, uint8_t perm)
LIST_OF_PMP_REGS
#undef X
default:
sm_assert(FALSE);
sm_assert(false);
}
}
return SBI_ERR_SM_PMP_SUCCESS;
@@ -285,7 +285,7 @@ int pmp_unset(int region_idx)
LIST_OF_PMP_REGS
#undef X
default:
sm_assert(FALSE);
sm_assert(false);
}

if(region_needs_two_entries(region_idx))
@@ -296,7 +296,7 @@ int pmp_unset(int region_idx)
LIST_OF_PMP_REGS
#undef X
default:
sm_assert(FALSE);
sm_assert(false);
}
}

0 comments on commit c4481fe

Please sign in to comment.