summaryrefslogtreecommitdiff
path: root/src/stm/altos.ld
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2012-07-14 01:24:14 -0700
committerKeith Packard <keithp@keithp.com>2012-07-14 01:24:14 -0700
commit09633cac697e37d770b2b666ab20cab30628484f (patch)
tree70b4ed61439258a6266775099f6de4f401872559 /src/stm/altos.ld
parentb5f6d4e5251a825395c93916afa3af659c678498 (diff)
altos/stm: Force STM stack to start at the top of RAM
Using a fixed size means crashing if there's not enough space for that, or wasting memory if there's too much. Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/stm/altos.ld')
-rw-r--r--src/stm/altos.ld3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/stm/altos.ld b/src/stm/altos.ld
index 7fede558..f5a84f4c 100644
--- a/src/stm/altos.ld
+++ b/src/stm/altos.ld
@@ -23,7 +23,6 @@ MEMORY {
INCLUDE registers.ld
EXTERN (stm_interrupt_vector)
-C_STACK_SIZE = 512;
SECTIONS {
. = ORIGIN(rom);
@@ -62,7 +61,7 @@ SECTIONS {
__bss_end__ = .;
} >ram
- PROVIDE(__stack__ = . + C_STACK_SIZE);
+ PROVIDE(__stack__ = ORIGIN(ram) + LENGTH(ram));
PROVIDE(end = .);
}