summaryrefslogtreecommitdiff
path: root/nuttx/configs/ne64badge/ostest/ld.script.banked
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/configs/ne64badge/ostest/ld.script.banked')
-rwxr-xr-xnuttx/configs/ne64badge/ostest/ld.script.banked24
1 files changed, 16 insertions, 8 deletions
diff --git a/nuttx/configs/ne64badge/ostest/ld.script.banked b/nuttx/configs/ne64badge/ostest/ld.script.banked
index 59b70293b..a0e07cb65 100755
--- a/nuttx/configs/ne64badge/ostest/ld.script.banked
+++ b/nuttx/configs/ne64badge/ostest/ld.script.banked
@@ -39,16 +39,20 @@
MEMORY
{
- /* The 8Kb SRAM is mapped to 0x2000-0x2fff. The top 256 bytes are reserved
- * for the serial monitor stack space.
+ /* The register space resides at address 0x0000-0x03ff. The following
+ * address, 0x0400-0x1fff are unused.
+ *
+ * The 8Kb SRAM is mapped to 0x2000-0x2fff.
*/
- sram (rwx) : ORIGIN = 0x2000, LENGTH = 8K-256
+ sram (rwx) : ORIGIN = 0x2000, LENGTH = 8K
- /* Two fixed text flash pages (corresponding to page 3e and 3f) */
+ /* Two fixed text flash pages (corresponding to page 3e and 3f). The
+ * top 256 bytes of page 3f is reserved to hold the interrupt vectors
+ */
lowtext(rx) : ORIGIN = 0x4000, LENGTH = 16K /* Page 3e */
- hitext (rx) : ORIGIN = 0xc000, LENGTH = 16K-2k /* Page 3f */
+ hitext (rx) : ORIGIN = 0xc000, LENGTH = 16K-256 /* Page 3f */
/* Flash memory pages:
*
@@ -79,9 +83,9 @@ MEMORY
page3e (rx) : ORIGIN = 0x0f8000, LENGTH = 16K /* Page 3e */
page3f (rx) : ORIGIN = 0x0fc000, LENGTH = 16K-2K /* Page 3f */
- /* Vectors. These get relocated to 0xf780-f7ff by the serial loader */
+ /* Vectors */
- vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
+ vectors (rx) : ORIGIN = 0xff80, LENGTH = 256
}
ENTRY(_stext)
@@ -89,7 +93,7 @@ SECTIONS
{
.text : {
_stext = ABSOLUTE(.);
- *(.vectors)
+ *(nonbanked)
*(.text .text.*)
*(.fixup)
*(.gnu.warning)
@@ -113,6 +117,10 @@ SECTIONS
_edata = ABSOLUTE(.);
} > sram AT > lowtext
+ .vectors : {
+ *(vectors)
+ } > vectors
+
.bss : { /* BSS */
_sbss = ABSOLUTE(.);
*(.bss .bss.*)