MIPS: u-boot.lds: introduce symbol __image_copy_end
authorDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tue, 12 Feb 2013 21:22:12 +0000 (22:22 +0100)
committerDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
Tue, 12 Feb 2013 21:22:12 +0000 (22:22 +0100)
This symbol is used in later patches as end address
for relocation of the U-Boot image into RAM.

Signed-off-by: Daniel Schwierzeck <daniel.schwierzeck@gmail.com>
arch/mips/cpu/u-boot.lds
arch/mips/include/asm/u-boot-mips.h

index 6980b86b9f2329d8354309813b6e2a6811fd5b1b..7b5fca09634aba8a1ca7db9c5ed176690c3f0b23 100644 (file)
@@ -70,6 +70,8 @@ SECTIONS
        uboot_end_data = .;
 
        . = ALIGN(4);
+       __image_copy_end = .;
+
        .bss : {
                __bss_start = .;
                *(.sbss.*)
index eda04987342ad8bf2a73f3e8e3f8cf69603f3638..bfb6a4a43a373e28ff13b6ce9459c797221a624e 100644 (file)
@@ -20,4 +20,10 @@ static inline unsigned long bss_end(void)
        return (unsigned long) &__bss_end;
 }
 
+static inline unsigned long image_copy_end(void)
+{
+       extern ulong __image_copy_end;
+       return (unsigned long) &__image_copy_end;
+}
+
 extern int incaip_set_cpuclk(void);