summaryrefslogtreecommitdiff
path: root/src/lpc/altos.ld
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpc/altos.ld')
-rw-r--r--src/lpc/altos.ld5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lpc/altos.ld b/src/lpc/altos.ld
index 7a99e66b..bcfba1ea 100644
--- a/src/lpc/altos.ld
+++ b/src/lpc/altos.ld
@@ -17,7 +17,8 @@
MEMORY {
rom (rx) : ORIGIN = 0x00000000, LENGTH = 32K
- ram (!w) : ORIGIN = 0x10000000, LENGTH = 4K
+ ram (!w) : ORIGIN = 0x10000000, LENGTH = 4K - 512
+ stack (!w) : ORIGIN = 0x10000000 + 4K - 512, LENGTH = 512
}
INCLUDE registers.ld
@@ -63,7 +64,7 @@ SECTIONS {
__bss_end__ = .;
} >ram
- PROVIDE(__stack__ = ORIGIN(ram) + LENGTH(ram));
+ PROVIDE(__stack__ = ORIGIN(stack) + LENGTH(stack));
PROVIDE(end = .);
}