Ensure that fault handlers are declared naked.

pull/1/head
Gaurav Aggarwal 6 years ago
parent 2279a86566
commit b6e5f96f0e

@ -65,6 +65,13 @@ const uint32_t * __unprivileged_sram_end__ = ( uint32_t * ) ( 0x30018000 - 0x1
* @brief Create all demo tasks.
*/
static void prvCreateTasks( void );
/**
* @brief The hard fault handler.
*
* It calls a function called vHandleMemoryFault.
*/
void HardFault_Handler( void ) __attribute__ ( ( naked ) );
/*-----------------------------------------------------------*/
static void prvCreateTasks( void )
@ -166,10 +173,6 @@ void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer,
}
/*-----------------------------------------------------------*/
/**
* @brief The fault handler implementation calls a function called
* vHandleMemoryFault.
*/
void HardFault_Handler( void )
{
__asm volatile

@ -57,7 +57,7 @@ void SystemInit( void );
*
* It calls a function called vHandleMemoryFault.
*/
void MemManage_Handler( void ) __attribute__ ( ( naked ) );
void MemManage_Handler( void ) __attribute__ ( ( naked ) );
/*-----------------------------------------------------------*/
static void prvCreateTasks( void )

@ -63,6 +63,13 @@ const uint32_t * __unprivileged_sram_end__ = ( uint32_t * ) ( 0x20220000 - 0x1
* @brief Create all demo tasks.
*/
static void prvCreateTasks( void );
/**
* @brief The mem fault handler.
*
* It calls a function called vHandleMemoryFault.
*/
void MemManage_Handler( void ) __attribute__ ( ( naked ) );
/*-----------------------------------------------------------*/
/*
@ -170,10 +177,6 @@ void vApplicationGetTimerTaskMemory( StaticTask_t ** ppxTimerTaskTCBBuffer,
}
/*-----------------------------------------------------------*/
/**
* @brief The mem fault handler implementation calls a function called
* vHandleMemoryFault.
*/
void MemManage_Handler( void )
{
__asm volatile

Loading…
Cancel
Save