RIOT/cpu/cortexm_common
Joakim Nohlgård 2f55fdcec4 cortexm_common: Correct offset for hardfault stack
The required space for the hardfault handler is defined by
HARDFAULT_HANDLER_REQUIRED_STACK_SPACE, which is given in bytes,
this length is added to &_sram to find a lower limit on the amount of
stack space that the hard fault handler can work with. The _sram
variable, was mistakenly defined as a uint32_t, which makes &_sram into
a uint32_t*, which through pointer addition, made the required space 4
times as big as it was supposed to. By changing the type of _sram to
uint8_t, the required stack space is correctly computed.

The symptom was that the hardfault handler always reported that the
stack pointer had been corrupted and it was impossible to get any useful
information from the crash text.
2017-10-30 07:08:33 +01:00
..
include pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
ldscripts cortexm_common: Correct offset for hardfault stack 2017-10-30 07:08:33 +01:00
periph all: fix my email address 2017-10-20 15:02:41 +02:00
cortexm_init.c cpu/cortexm: set VTOR for selected M0+ CPUs 2017-06-02 11:53:59 +02:00
irq_arch.c cpu/cortexm_common: add used attributes for LTO 2015-09-30 15:56:38 +02:00
Makefile cpu: cortexm: fix LTO issue for shared vector table (see #5774) 2017-10-20 22:19:44 +02:00
Makefile.include cpu/cortexm_common: add image headers default size 2017-07-17 14:48:30 +02:00
mpu.c cortexm_common: Fix unused parameter warnings in mpu_configure 2017-01-16 08:55:08 +01:00
panic.c cpu/cortexm: removed unused pm include in panic.c 2017-01-19 11:05:44 +01:00
thread_arch.c cpu/cortex_common: added support for Cortex-M7 2017-05-08 09:16:11 +02:00
vectors_cortexm.c cortexm_common: Correct offset for hardfault stack 2017-10-30 07:08:33 +01:00