arch:xtens:mpu: modify acc and memtype to uint32_t

The uint8_t and uint16_t will overflow in MPU_ENTRY_AR marco.

Signed-off-by: zhuyanlin <zhuyanlin1@xiaomi.com>
This commit is contained in:
zhuyanlin
2021-10-18 19:38:58 +08:00
committed by Xiang Xiao
parent 9b52e4e311
commit b5134565fa
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -210,7 +210,7 @@ void mpu_control(bool enable);
****************************************************************************/
void mpu_configure_region(uintptr_t base, size_t size,
uint8_t acc, uint16_t memtype);
uint32_t acc, uint32_t memtype);
/****************************************************************************
* Name: mpu_priv_stronglyordered
+1 -1
View File
@@ -94,7 +94,7 @@ void mpu_control(bool enable)
****************************************************************************/
void mpu_configure_region(uintptr_t base, size_t size,
uint8_t acc, uint16_t memtype)
uint32_t acc, uint32_t memtype)
{
unsigned int region = mpu_allocregion();
uint32_t at;