1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

OP-423: Replace hardcoded value and get value from memory section (change from code review)

This commit is contained in:
Mathieu Rondonneau 2011-06-25 20:06:33 -07:00
parent fc62f6e522
commit fbf0b021c7
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ PROVIDE(pios_board_info_blob = ORIGIN(BD_INFO));
_estack = 0x20004FF0;
/* there is probably a way to get that from the MEMORY section */
_eram = 0x20005000;
_eram = ORIGIN(SRAM) + LENGTH(SRAM);
/* Section Definitions */
SECTIONS

View File

@ -3,7 +3,7 @@ _irq_stack_size = 0x400;
/* This is the size of the stack for early init: life span is until scheduler starts */
_init_stack_size = 0x400;
/* there is probably a way to get that from the MEMORY section */
_eram = 0x20010000;
_eram = ORIGIN(RAM) + LENGTH(RAM);
/* Check valid alignment for VTOR */
ASSERT(ORIGIN(FLASH) == ALIGN(ORIGIN(FLASH), 0x80), "Start of memory region flash not aligned for startup vector table");