[prev in list] [next in list] [prev in thread] [next in thread] 

List:       rockbox-cvs
Subject:    funman: r18937 - trunk/firmware/target/arm/as3525
From:       mailer () svn ! rockbox ! org
Date:       2008-10-30 20:01:01
Message-ID: 200810302001.m9UK11aw018035 () giant ! haxx ! se
[Download RAW message or body]

Date: 2008-10-30 21:01:01 +0100 (Thu, 30 Oct 2008)
New Revision: 18937

Log Message:
Sansav2 bootloader: explicitely link everything into IRAM

Modified:
   trunk/firmware/target/arm/as3525/boot.lds

Modified: trunk/firmware/target/arm/as3525/boot.lds
===================================================================
--- trunk/firmware/target/arm/as3525/boot.lds	2008-10-30 20:00:56 UTC (rev 18936)
+++ trunk/firmware/target/arm/as3525/boot.lds	2008-10-30 20:01:01 UTC (rev 18937)
@@ -5,23 +5,37 @@
 OUTPUT_ARCH(arm)
 STARTUP(target/arm/crt0.o)
 
+#define DRAMSIZE (MEMORYSIZE * 0x100000)
+#define DRAMORIG 0x30000000
+#define IRAMORIG 0
+#define IRAMSIZE 0x50000
+
+MEMORY
+{
+    DRAM : ORIGIN = DRAMORIG, LENGTH = DRAMSIZE
+    IRAM : ORIGIN = IRAMORIG, LENGTH = IRAMSIZE
+}
+
 SECTIONS
 {
-  /*. = IRAMORIG; */
+  . = IRAMORIG;
 
   .text : {
     *(.init.text)
+    *(.glue_7)
+    *(.glue_7t)
     *(.text*)
-  }
+  } > IRAM
 
   .data : {
     *(.icode)
     *(.irodata)
     *(.idata)
     *(.data*)
-    *(.ncdata*);
+    *(.ncdata*)
+    *(.rodata*)
     _dataend = . ;
-   }
+   } > IRAM
 
   .stack :
   {
@@ -31,7 +45,7 @@
      . += 0x2000;
      _stackend = .;
      stackend = .;
-  }
+  } > IRAM
 
   .bss : {
      _edata = .;
@@ -39,5 +53,5 @@
      *(.ibss);
      *(.ncbss*);
      _end = .;
-   }
+   } > IRAM
 }

_______________________________________________
rockbox-cvs mailing list
rockbox-cvs@cool.haxx.se
http://cool.haxx.se/cgi-bin/mailman/listinfo/rockbox-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic