]> git.sur5r.net Git - u-boot/commitdiff
xtensa: clean up CONFIG_SYS_TEXT_ADDR
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 12 Feb 2018 23:39:19 +0000 (15:39 -0800)
committerTom Rini <trini@konsulko.com>
Fri, 23 Feb 2018 15:21:41 +0000 (10:21 -0500)
Drop CONFIG_SYS_MEMORY_TOP. Rename CONFIG_SYS_TEXT_ADDR to
XTENSA_SYS_TEXT_ADDR.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/cpu/start.S
arch/xtensa/cpu/u-boot.lds
include/configs/xtfpga.h

index 8e4bc99e42959ee4cfaa22010be492f793b86ae0..cdb875da5339759ab733e2edaf191b0f5ce1c020 100644 (file)
@@ -226,7 +226,7 @@ _start:
 #endif
 
        movi    a0, 0
-       movi    sp, (CONFIG_SYS_TEXT_ADDR - 16) & 0xfffffff0
+       movi    sp, (XTENSA_SYS_TEXT_ADDR - 16) & 0xfffffff0
 
 #ifdef CONFIG_DEBUG_UART
        movi    a4, debug_uart_init
index 853ae5a948915151d6d701ef5e7ee02dd66bb9af..7200bc59fbfcdc53e6a1a380b26424277dba5182 100644 (file)
@@ -74,9 +74,9 @@ SECTIONS
   SECTION_VECTOR(DoubleExceptionVector,text,XCHAL_DOUBLEEXC_VECTOR_VADDR,
                 FOLLOWING(.DoubleExceptionVector.literal))
 
-  __monitor_start = CONFIG_SYS_TEXT_ADDR;
+  __monitor_start = XTENSA_SYS_TEXT_ADDR;
 
-  SECTION_text(CONFIG_SYS_TEXT_ADDR, FOLLOWING(.DoubleExceptionVector.text))
+  SECTION_text(XTENSA_SYS_TEXT_ADDR, FOLLOWING(.DoubleExceptionVector.text))
   SECTION_rodata(ALIGN(16), FOLLOWING(.text))
   SECTION_u_boot_list(ALIGN(16), FOLLOWING(.rodata))
   SECTION_data(ALIGN(16), FOLLOWING(.u_boot_list))
index 79cc1e8fc1b8f733430f9b4c39a5a5740af77105..496f3772d5d7a54bb344e86a780f6908c6199fe7 100644 (file)
@@ -98,9 +98,8 @@
 #define CONFIG_SYS_MEMORY_SIZE         CONFIG_SYS_SDRAM_SIZE
 #endif
 
-#define CONFIG_SYS_MEMORY_TOP          MEMADDR(CONFIG_SYS_MEMORY_SIZE)
-#define CONFIG_SYS_TEXT_ADDR           \
-       (CONFIG_SYS_MEMORY_TOP - CONFIG_SYS_MONITOR_LEN)
+#define XTENSA_SYS_TEXT_ADDR           \
+       (MEMADDR(CONFIG_SYS_MEMORY_SIZE) - CONFIG_SYS_MONITOR_LEN)
 
 /* Used by tftpboot; env var 'loadaddr' */
 #define CONFIG_SYS_LOAD_ADDR           MEMADDR(0x02000000)