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

The uint8_t and uint16_t will overflow in MPU_ENTRY_AR marco.

Change-Id: I2f660c13740fea725a076f7f208214aedc5ca0ee
This commit is contained in:
zhuyanlin
2021-10-18 19:38:58 +08:00
parent 1fb1a77214
commit ca09f78003
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;