mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-04-19 21:11:57 -04:00
Ensure that fault handlers are declared naked.
This commit is contained in:
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…
Reference in a new issue