1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
LibrePilot/flight
stac 918250868b irq_stack: correct one word overlap of _irq_stack_top
The previous fix in r652 was _almost_ right.  There was
still a one word (4-byte) overlap between _irq_stack_top
and the start of the data segment.

_irq_stack_end + _irq_stack_size leaves the '.' pointer at
the word immediatly after the stack.  This commit corrects
this error and places _irq_stack_top on the last word
_inside_ the reserved space for the irq stack.

[Before]
  $ ./tools/arm-2009q3/bin/arm-none-eabi-nm -n ./build/openpilot/OpenPilot.elf
  ...
  20000000 A SRAM_BASE
  20000000 B _irq_stack_end
  20000400 d LED_GPIO_PORT   <--- overlap
  20000400 B _irq_stack_top  <--- overlap
  20000400 D _sdata
  20000408 d ADC_GPIO_PORT
  ...

[After]
  $ ./tools/arm-2009q3/bin/arm-none-eabi-nm -n ./build/openpilot/OpenPilot.elf
  ...
  20000000 A SRAM_BASE
  20000000 B _irq_stack_end
  200003fc B _irq_stack_top
  20000400 d LED_GPIO_PORT
  20000400 D _sdata
  20000408 d ADC_GPIO_PORT
  ...

git-svn-id: svn://svn.openpilot.org/OpenPilot/trunk@668 ebee16cc-31ac-478f-84a7-5cbb03baadba
2010-05-27 01:37:40 +00:00
..
AHRS Added GPIO functions for accelerometer full-scale selection. 2010-05-15 15:27:52 +00:00
Bootloaders/OpenPilot Small optimisations in bootloader code. 2010-03-14 12:01:13 +00:00
Doc Removed old empty files. 2010-03-04 06:18:28 +00:00
OpenPilot OP-25 Flight/GPS: New GPS fields in use 2010-05-25 05:32:43 +00:00
PiOS irq_stack: correct one word overlap of _irq_stack_top 2010-05-27 01:37:40 +00:00
Project gdb: Add pre/post hooks to fix stepi 2010-05-18 04:50:36 +00:00
README.txt Says all it needs to say for now. 2009-12-22 05:07:27 +00:00

Check the wiki