Skip to content

Commit eac90ee

Browse files
ibirnbaumcarlescufi
authored andcommitted
arch: arm: core: aarch32: limit ACTLR register access to Cortex-R
The configuration bits ATCMPCEN, B0TCMPCEN and B1TCMPCEN in the ACTLR register referenced in the function z_arm_tcm_disable_ecc are only de- fined for Cortex-R CPUs. For Cortex-A CPUs, those bits are declared as reserved. Comp.: https://arm-software.github.io/CMSIS_5/Core_A/html/group__CMSIS__ACTLR.html Signed-off-by: Immo Birnbaum <[email protected]>
1 parent 85f5337 commit eac90ee

File tree

1 file changed

+2
-0
lines changed
  • arch/arm/core/aarch32/cortex_a_r

1 file changed

+2
-0
lines changed

arch/arm/core/aarch32/cortex_a_r/tcm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,12 @@
88

99
void z_arm_tcm_disable_ecc(void)
1010
{
11+
#if defined(CONFIG_ARMV7_R)
1112
uint32_t actlr;
1213

1314
actlr = __get_ACTLR();
1415
actlr &= ~(ACTLR_ATCMPCEN_Msk | ACTLR_B0TCMPCEN_Msk |
1516
ACTLR_B1TCMPCEN_Msk);
1617
__set_ACTLR(actlr);
18+
#endif
1719
}

0 commit comments

Comments
 (0)