mirror of https://github.com/ARMmbed/mbed-os.git
				
				
				
			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
							parent
							
								
									22b31e45a5
								
							
						
					
					
						commit
						5c036cb1ba
					
				| 
						 | 
				
			
			@ -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 */
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue