1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 12:52:44 +01:00
RIOT/cpu
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
..
arm7_common all: fix my email address 2017-10-20 15:02:41 +02:00
atmega328p cpu/atmega: use power.h defines instead of direct register access 2017-09-14 14:04:14 +02:00
atmega1281 cpu/atmega: use power.h defines instead of direct register access 2017-09-14 14:04:14 +02:00
atmega2560 cpu/atmega: use power.h defines instead of direct register access 2017-09-14 14:04:14 +02:00
atmega_common Merge pull request #7590 from lebrush/fix/atmega-gpio-misc 2017-09-15 11:59:11 +02:00
cc26x0 cpu, cc26x0: fix pm, don't go into cortexm_sleep(0) 2017-10-20 10:51:33 +02:00
cc430 cpu/msp430|cc430: removed old flashrom driver 2017-08-29 11:55:27 +02:00
cc2538 all: fix my email address 2017-10-20 15:02:41 +02:00
cortexm_common cortexm_common: Correct offset for hardfault stack 2017-10-30 07:08:33 +01:00
ezr32wg cpu/ezr32wg/gpio: do not clear output pin on init 2017-10-04 12:15:03 +02:00
k22f cpu: force size of CPU specific vector table 2017-09-04 15:13:43 +02:00
k60 cpu: force size of CPU specific vector table 2017-09-04 15:13:43 +02:00
k64f cpu: force size of CPU specific vector table 2017-09-04 15:13:43 +02:00
kinetis_common pm: unify and set safe default pm_blocker 2017-10-16 14:32:27 +02:00
kw2xd cpu: force size of CPU specific vector table 2017-09-04 15:13:43 +02:00
lm4f120 pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
lpc1768 pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
lpc2387 Merge pull request #7129 from haukepetersen/opt_periph_sharetimerset 2017-08-01 15:09:48 +02:00
mips32r2_common pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
mips_pic32_common cpu/mips_pic32: fix doxygen for GPIO_PIN macro 2017-10-16 14:27:35 +02:00
mips_pic32mx pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
mips_pic32mz pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
msp430_common Merge pull request #7512 from aabadie/cpu_mips_doc 2017-09-01 11:34:08 +02:00
msp430fxyz cpu/msp430/gpio: do not clear output pin on init 2017-10-04 12:15:03 +02:00
native pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
nrf5x_common pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
nrf51 cpu: force size of CPU specific vector table 2017-09-04 15:13:43 +02:00
nrf52 cpu: force size of CPU specific vector table 2017-09-04 15:13:43 +02:00
sam0_common pm: unify and set safe default pm_blocker 2017-10-16 14:32:27 +02:00
sam3 cpu, sam3: adapt to sam_common 2017-10-09 12:06:35 +02:00
sam_common cpu, sam3: adapt to sam_common 2017-10-09 12:06:35 +02:00
samd21 cpu/samd21: skip pwm if not defined in board config 2017-10-12 12:07:41 +02:00
saml21 Merge pull request #7535 from haukepetersen/opt_cortexm_vectordefs 2017-10-01 21:46:17 +02:00
stellaris_common cpu/stellaris: Rename Makefile -> Makefile.include 2017-04-04 19:57:12 +02:00
stm32_common pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
stm32f0 cpu/stm32: optimized definition of CPUID_ADDR 2017-10-13 16:03:32 +02:00
stm32f1 Merge pull request #7727 from beduino-project/bluepill-rebased 2017-10-27 20:33:07 +02:00
stm32f2 cpu/stm32: optimized definition of CPUID_ADDR 2017-10-13 16:03:32 +02:00
stm32f3 cpu/stm32: optimized definition of CPUID_ADDR 2017-10-13 16:03:32 +02:00
stm32f4 cpu/stm32: optimized definition of CPUID_ADDR 2017-10-13 16:03:32 +02:00
stm32f7 cpu/stm32: optimized definition of CPUID_ADDR 2017-10-13 16:03:32 +02:00
stm32l0 Merge pull request #7731 from haukepetersen/opt_stm32_cpuid 2017-10-13 16:12:41 +02:00
stm32l1 cpu/stm32: optimized definition of CPUID_ADDR 2017-10-13 16:03:32 +02:00
stm32l4 cpu/stm32: optimized definition of CPUID_ADDR 2017-10-13 16:03:32 +02:00
x86 pm: fix weak-based default implementations 2017-10-16 14:27:35 +02:00
doc.txt cpu: doc typos 2017-01-20 13:36:26 +01:00