From 5c036cb1ba8fb0caea81370a737b160417b5939a Mon Sep 17 00:00:00 2001 From: TomoYamanaka Date: Tue, 29 May 2018 22:50:17 +0900 Subject: [PATCH] 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. --- platform/mbed_application.c | 11 +++++++++++ platform/mbed_application.h | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/platform/mbed_application.c b/platform/mbed_application.c index 768e9c62df..9cfe8b0720 100644 --- a/platform/mbed_application.c +++ b/platform/mbed_application.c @@ -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 */ diff --git a/platform/mbed_application.h b/platform/mbed_application.h index d02ac67651..ba2aebaecb 100644 --- a/platform/mbed_application.h +++ b/platform/mbed_application.h @@ -20,7 +20,7 @@ #include #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