diff options
author | Davide Grohmann <davide.grohmann@arm.com> | 2022-02-10 13:43:11 +0100 |
---|---|---|
committer | Davide Grohmann <davide.grohmann@arm.com> | 2022-02-11 15:43:30 +0100 |
commit | fe0d04355237cc2aac32973961e5bf14ddb95271 (patch) | |
tree | 226fc6fdd7b31d56fed9043607264d7708172b51 /drivers/mpu/src/mpu.cpp | |
parent | 4882dbe10cce59e1b64bc3d43e6b29eaf3afc446 (diff) | |
download | ethos-u-core-platform-fe0d04355237cc2aac32973961e5bf14ddb95271.tar.gz |
Fix compilation warnings
Change-Id: I57fed2a1b49a61822617b43a201a3125f566fd16
Diffstat (limited to 'drivers/mpu/src/mpu.cpp')
-rw-r--r-- | drivers/mpu/src/mpu.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mpu/src/mpu.cpp b/drivers/mpu/src/mpu.cpp index 338e3d1..8e6a9e2 100644 --- a/drivers/mpu/src/mpu.cpp +++ b/drivers/mpu/src/mpu.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2020-2021 Arm Limited. All rights reserved. + * Copyright (c) 2020-2022 Arm Limited. All rights reserved. * * SPDX-License-Identifier: Apache-2.0 * @@ -52,8 +52,8 @@ void dump() { #endif } -static void initializeAttributes() { #ifdef ARM_MPU_ARMV8_H +static void initializeAttributes() { /* Initialize attributes corresponding to the enums defined in mpu.hpp */ const uint8_t WTRA = ARM_MPU_ATTR_MEMORY_(1, 0, 1, 0); // Non-transient, Write-Through, Read-allocate, Not Write-allocate @@ -61,8 +61,8 @@ static void initializeAttributes() { ARM_MPU_SetMemAttr(WTRA_index, ARM_MPU_ATTR(WTRA, WTRA)); ARM_MPU_SetMemAttr(WBWARA_index, ARM_MPU_ATTR(WBWARA, WBWARA)); -#endif } +#endif void loadAndEnableConfig(ARM_MPU_Region_t const *table, uint32_t cnt) { #ifdef ARM_MPU_ARMV8_H |