Ensure that fault handlers are declared naked.

This commit is contained in:
Gaurav Aggarwal 2019-05-05 02:26:42 +00:00
parent 2279a86566
commit b6e5f96f0e
3 changed files with 15 additions and 9 deletions

View File

@ -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

View File

@ -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 )

View File

@ -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