diff options
author | Keith Packard <keithp@keithp.com> | 2017-12-12 15:27:26 -0800 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2017-12-12 15:27:26 -0800 |
commit | 09ea349f5b37e257e8ca23ead493ba1694395530 (patch) | |
tree | eca7e5f06fa5091ce6cf8cc7a3c06066aa8cc9eb /src/lambdakey-v1.0/lambda.ld | |
parent | d8c9024f3829dc3f241b16869f165f3ee01764f3 (diff) |
altos/lambdakey-v1.0: Get this building again
The lambdakey can't hold a full implementation of the scheme
interpreter, so use only a subset, removing floats, bigints and
vectors. Also reduce the pre-loaded lisp code as well.
It's pretty spare at this point; but it does fill the ROM.
Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'src/lambdakey-v1.0/lambda.ld')
-rw-r--r-- | src/lambdakey-v1.0/lambda.ld | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/lambdakey-v1.0/lambda.ld b/src/lambdakey-v1.0/lambda.ld index 5de65eb5..15b2d971 100644 --- a/src/lambdakey-v1.0/lambda.ld +++ b/src/lambdakey-v1.0/lambda.ld @@ -17,10 +17,9 @@ */ MEMORY { - rom (rx) : ORIGIN = 0x08001000, LENGTH = 25K - flash (r): ORIGIN = 0x08007400, LENGTH = 3k - ram (!w) : ORIGIN = 0x20000000, LENGTH = 6k - 128 - stack (!w) : ORIGIN = 0x20000000 + 6k - 128, LENGTH = 128 + rom (rx) : ORIGIN = 0x08001000, LENGTH = 28K + ram (!w) : ORIGIN = 0x20000000, LENGTH = 6k - 480 + stack (!w) : ORIGIN = 0x20000000 + 6k - 480, LENGTH = 480 } INCLUDE registers.ld @@ -93,9 +92,9 @@ SECTIONS { /* Data -- relocated to RAM, but written to ROM */ - .data : { + .data BLOCK(8): { *(.data) /* initialized data */ - . = ALIGN(4); + . = ALIGN(8); __data_end__ = .; } >ram AT>rom @@ -110,8 +109,6 @@ SECTIONS { PROVIDE(end = .); PROVIDE(__stack__ = ORIGIN(stack) + LENGTH(stack)); - - __flash__ = ORIGIN(flash); } ENTRY(start); |