]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
Blackfin: restore EVT1 handling in linker script
authorMike Frysinger <vapier@gentoo.org>
Thu, 23 Jul 2009 20:26:58 +0000 (16:26 -0400)
committerMike Frysinger <vapier@gentoo.org>
Fri, 24 Jul 2009 18:05:04 +0000 (14:05 -0400)
Sadly, the Blackfin linker script unification lost a small #ifdef logic
needed on older parts.  Restore that CONFIG_BFIN_BOOTROM_USES_EVT1 logic.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
lib_blackfin/u-boot.lds.S

index 4755153fcf97a9b6a9b74abd37b979d9e83d2923..3604b7888da513ca773e269d0327205a5f427f14 100644 (file)
 # define L1_DATA_B_SRAM_SIZE 0
 #endif
 
+/* The 0xC offset is so we don't clobber the tiny LDR jump block. */
+#ifdef CONFIG_BFIN_BOOTROM_USES_EVT1
+# define L1_CODE_ORIGIN L1_INST_SRAM
+#else
+# define L1_CODE_ORIGIN L1_INST_SRAM + 0xC
+#endif
+
 OUTPUT_ARCH(bfin)
 
 MEMORY
 {
        ram     : ORIGIN = CONFIG_SYS_MONITOR_BASE, LENGTH = CONFIG_SYS_MONITOR_LEN
-       l1_code : ORIGIN = L1_INST_SRAM,            LENGTH = L1_INST_SRAM_SIZE
+       l1_code : ORIGIN = L1_CODE_ORIGIN,          LENGTH = L1_INST_SRAM_SIZE
        l1_data : ORIGIN = L1_DATA_B_SRAM,          LENGTH = L1_DATA_B_SRAM_SIZE
 }