mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-17 02:23:49 +01:00
cpu/cortexm_common: make CI happy
This commit is contained in:
parent
69dadf61e9
commit
7885130809
@ -108,6 +108,8 @@ void reset_handler_default(void)
|
|||||||
pre_startup();
|
pre_startup();
|
||||||
|
|
||||||
#ifdef DEVELHELP
|
#ifdef DEVELHELP
|
||||||
|
/* cppcheck-suppress constVariable
|
||||||
|
* (top is modified by asm) */
|
||||||
uint32_t *top;
|
uint32_t *top;
|
||||||
/* Fill stack space with canary values up until the current stack pointer */
|
/* Fill stack space with canary values up until the current stack pointer */
|
||||||
/* Read current stack pointer from CPU register */
|
/* Read current stack pointer from CPU register */
|
||||||
@ -119,11 +121,17 @@ void reset_handler_default(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* load data section from flash to ram */
|
/* load data section from flash to ram */
|
||||||
|
/* cppcheck-suppress comparePointers
|
||||||
|
* (addresses exported as symbols via linker script and look unrelated
|
||||||
|
* to cppcheck) */
|
||||||
for (dst = &_srelocate; dst < &_erelocate; ) {
|
for (dst = &_srelocate; dst < &_erelocate; ) {
|
||||||
*(dst++) = *(src++);
|
*(dst++) = *(src++);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* default bss section to zero */
|
/* default bss section to zero */
|
||||||
|
/* cppcheck-suppress comparePointers
|
||||||
|
* (addresses exported as symbols via linker script and look unrelated
|
||||||
|
* to cppcheck) */
|
||||||
for (dst = &_szero; dst < &_ezero; ) {
|
for (dst = &_szero; dst < &_ezero; ) {
|
||||||
*(dst++) = 0;
|
*(dst++) = 0;
|
||||||
}
|
}
|
||||||
@ -140,6 +148,9 @@ void reset_handler_default(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* zero-out low-power bss. */
|
/* zero-out low-power bss. */
|
||||||
|
/* cppcheck-suppress comparePointers
|
||||||
|
* (addresses exported as symbols via linker script and look unrelated
|
||||||
|
* to cppcheck) */
|
||||||
for (dst = _sbackup_bss; dst < _ebackup_bss; dst++) {
|
for (dst = _sbackup_bss; dst < _ebackup_bss; dst++) {
|
||||||
*dst = 0;
|
*dst = 0;
|
||||||
}
|
}
|
||||||
@ -222,7 +233,8 @@ static inline int _stack_size_left(uint32_t required)
|
|||||||
return ((int)((uint32_t)sp - (uint32_t)&_sstack) - required);
|
return ((int)((uint32_t)sp - (uint32_t)&_sstack) - required);
|
||||||
}
|
}
|
||||||
|
|
||||||
void hard_fault_handler(uint32_t* sp, uint32_t corrupted, uint32_t exc_return, uint32_t* r4_to_r11_stack);
|
void hard_fault_handler(uint32_t* sp, uint32_t corrupted, uint32_t exc_return,
|
||||||
|
uint32_t* r4_to_r11_stack);
|
||||||
|
|
||||||
/* Trampoline function to save stack pointer before calling hard fault handler */
|
/* Trampoline function to save stack pointer before calling hard fault handler */
|
||||||
__attribute__((naked)) void hard_fault_default(void)
|
__attribute__((naked)) void hard_fault_default(void)
|
||||||
@ -302,7 +314,8 @@ __attribute__((naked)) void hard_fault_default(void)
|
|||||||
#define CPU_HAS_EXTENDED_FAULT_REGISTERS 1
|
#define CPU_HAS_EXTENDED_FAULT_REGISTERS 1
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
__attribute__((used)) void hard_fault_handler(uint32_t* sp, uint32_t corrupted, uint32_t exc_return, uint32_t* r4_to_r11_stack)
|
__attribute__((used)) void hard_fault_handler(uint32_t* sp, uint32_t corrupted, uint32_t exc_return,
|
||||||
|
uint32_t* r4_to_r11_stack)
|
||||||
{
|
{
|
||||||
#if CPU_HAS_EXTENDED_FAULT_REGISTERS
|
#if CPU_HAS_EXTENDED_FAULT_REGISTERS
|
||||||
static const uint32_t BFARVALID_MASK = (0x80 << SCB_CFSR_BUSFAULTSR_Pos);
|
static const uint32_t BFARVALID_MASK = (0x80 << SCB_CFSR_BUSFAULTSR_Pos);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user