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.
pull/6925/head
TomoYamanaka 2018-05-29 22:50:17 +09:00
parent 22b31e45a5
commit 5c036cb1ba
2 changed files with 12 additions and 1 deletions

View File

@ -21,6 +21,15 @@
#if MBED_APPLICATION_SUPPORT
#if defined(__CORTEX_A9)
void mbed_start_application(uintptr_t address)
{
((void(*)())address)();
}
#else
static void powerdown_nvic(void);
static void powerdown_scb(uint32_t vtor);
static void start_new_application(void *sp, void *pc);
@ -144,4 +153,6 @@ void start_new_application(void *sp, void *pc)
#endif
#endif
#endif /* MBED_APPLICATION_SUPPORT */

View File

@ -20,7 +20,7 @@
#include<stdint.h>
#if defined(__CORTEX_M3) || defined(__CORTEX_M4) || defined(__CORTEX_M7)\
|| defined(__CORTEX_M23)
|| defined(__CORTEX_M23) || defined(__CORTEX_A9)
#define MBED_APPLICATION_SUPPORT 1
#else
#define MBED_APPLICATION_SUPPORT 0