Skip to content

Commit 5c036cb

Browse files
committed
Add the process for Cortex-A in mbed_applicaion
I added the process for Cortex-A in mbed_application.c because this process was for only Cortex-M. Also I enabled the macro of MBED_APPLICATION_SUPPORT for Cortex-A.
1 parent 22b31e4 commit 5c036cb

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

platform/mbed_application.c

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@
2121

2222
#if MBED_APPLICATION_SUPPORT
2323

24+
#if defined(__CORTEX_A9)
25+
26+
void mbed_start_application(uintptr_t address)
27+
{
28+
((void(*)())address)();
29+
}
30+
31+
#else
32+
2433
static void powerdown_nvic(void);
2534
static void powerdown_scb(uint32_t vtor);
2635
static void start_new_application(void *sp, void *pc);
@@ -144,4 +153,6 @@ void start_new_application(void *sp, void *pc)
144153

145154
#endif
146155

156+
#endif
157+
147158
#endif /* MBED_APPLICATION_SUPPORT */

platform/mbed_application.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
#include<stdint.h>
2121

2222
#if defined(__CORTEX_M3) || defined(__CORTEX_M4) || defined(__CORTEX_M7)\
23-
|| defined(__CORTEX_M23)
23+
|| defined(__CORTEX_M23) || defined(__CORTEX_A9)
2424
#define MBED_APPLICATION_SUPPORT 1
2525
#else
2626
#define MBED_APPLICATION_SUPPORT 0

0 commit comments

Comments
 (0)