soc: mpu hal fixes
This commit is contained in:
parent
604360b98c
commit
ece80dbc8e
3 changed files with 6 additions and 3 deletions
|
@ -22,7 +22,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
static inline uint32_t cpu_ll_id_to_addr(int id)
|
||||
static inline uint32_t mpu_ll_id_to_addr(int id)
|
||||
{
|
||||
// vpn - id
|
||||
// 0x00000000 = 0
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
extern "C" {
|
||||
#endif
|
||||
|
||||
static inline uint32_t cpu_ll_id_to_addr(int id)
|
||||
static inline uint32_t mpu_ll_id_to_addr(int id)
|
||||
{
|
||||
// vpn - id
|
||||
// 0x00000000 = 0
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
void mpu_hal_set_region_access(int id, mpu_access_t access)
|
||||
{
|
||||
uint32_t addr = cpu_ll_id_to_addr(id);
|
||||
uint32_t addr = mpu_ll_id_to_addr(id);
|
||||
|
||||
switch (access)
|
||||
{
|
||||
|
@ -48,6 +48,9 @@ void mpu_hal_set_region_access(int id, mpu_access_t access)
|
|||
case MPU_REGION_RWX:
|
||||
mpu_ll_set_region_rwx(addr);
|
||||
break;
|
||||
case MPU_REGION_ILLEGAL:
|
||||
mpu_ll_set_region_illegal(addr);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue