summaryrefslogtreecommitdiff
path: root/src/lpc/altos.ld
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2013-05-17 03:36:47 -0700
committerKeith Packard <keithp@keithp.com>2013-05-17 03:50:07 -0700
commitac089d4fb930b7dbc4161259fd9bddba94395ebc (patch)
treeee17589ffa43eee5be5e1eb1b4fac67ebb581624 /src/lpc/altos.ld
parent185e6d15bcda229949a984910d7394203d301db9 (diff)
altos/lpc: Get USB working
The lpc demo now has a USB command line. Also allocates system stack so we know when ram is tight at build time Signed-off-by: Keith Packard <keithp@keithp.com>
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 = .);
}