arm: Adjust cortex-m7 support to reflect its ARMv7-M architecture.
The cortex-m7 is an implementation of armv7-m. Adjust the Kconfig support for cortex-m7 to reflect this and drop the unnecessary, explicit, conditional compilation. Change-Id: I6ec20e69c8c83c5a80b1f714506f7f9e295b15d5 Signed-off-by: Marcus Shawcroft <marcus.shawcroft@arm.com>
This commit is contained in:
parent
ef8200dfcd
commit
84cb997c62
16 changed files with 46 additions and 49 deletions
|
@ -70,7 +70,7 @@ void _FaultDump(const NANO_ESF *esf, int fault)
|
|||
esf->pc);
|
||||
|
||||
#if defined(CONFIG_ARMV6_M)
|
||||
#elif defined(CONFIG_ARMV7_M) || defined(CONFIG_CPU_CORTEX_M7)
|
||||
#elif defined(CONFIG_ARMV7_M)
|
||||
int escalation = 0;
|
||||
|
||||
if (3 == fault) { /* hard fault */
|
||||
|
@ -124,7 +124,7 @@ static void _FaultThreadShow(const NANO_ESF *esf)
|
|||
}
|
||||
|
||||
#if defined(CONFIG_ARMV6_M)
|
||||
#elif defined(CONFIG_ARMV7_M) || defined(CONFIG_CPU_CORTEX_M7)
|
||||
#elif defined(CONFIG_ARMV7_M)
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -266,7 +266,7 @@ static void _HardFault(const NANO_ESF *esf)
|
|||
|
||||
#if defined(CONFIG_ARMV6_M)
|
||||
_FaultThreadShow(esf);
|
||||
#elif defined(CONFIG_ARMV7_M) || defined(CONFIG_CPU_CORTEX_M7)
|
||||
#elif defined(CONFIG_ARMV7_M)
|
||||
if (_ScbHardFaultIsBusErrOnVectorRead()) {
|
||||
PR_EXC(" Bus fault on vector table read\n");
|
||||
} else if (_ScbHardFaultIsForced()) {
|
||||
|
@ -327,7 +327,7 @@ static void _FaultDump(const NANO_ESF *esf, int fault)
|
|||
_HardFault(esf);
|
||||
break;
|
||||
#if defined(CONFIG_ARMV6_M)
|
||||
#elif defined(CONFIG_ARMV7_M) || defined(CONFIG_CPU_CORTEX_M7)
|
||||
#elif defined(CONFIG_ARMV7_M)
|
||||
case 4:
|
||||
_MpuFault(esf, 0);
|
||||
break;
|
||||
|
@ -388,7 +388,7 @@ void _Fault(const NANO_ESF *esf)
|
|||
void _FaultInit(void)
|
||||
{
|
||||
#if defined(CONFIG_ARMV6_M)
|
||||
#elif defined(CONFIG_ARMV7_M) || defined(CONFIG_CPU_CORTEX_M7)
|
||||
#elif defined(CONFIG_ARMV7_M)
|
||||
_ScbDivByZeroFaultEnable();
|
||||
#else
|
||||
#error Unknown ARM architecture
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue