Skip to content
Snippets Groups Projects
Commit 3420bf1c authored by Daniel Schwierzeck's avatar Daniel Schwierzeck
Browse files

MIPS: u-boot.lds: introduce symbol __image_copy_end


This symbol is used in later patches as end address
for relocation of the U-Boot image into RAM.

Signed-off-by: default avatarDaniel Schwierzeck <daniel.schwierzeck@gmail.com>
parent a52852c5
No related branches found
No related tags found
No related merge requests found
...@@ -70,6 +70,8 @@ SECTIONS ...@@ -70,6 +70,8 @@ SECTIONS
uboot_end_data = .; uboot_end_data = .;
. = ALIGN(4); . = ALIGN(4);
__image_copy_end = .;
.bss : { .bss : {
__bss_start = .; __bss_start = .;
*(.sbss.*) *(.sbss.*)
......
...@@ -20,4 +20,10 @@ static inline unsigned long bss_end(void) ...@@ -20,4 +20,10 @@ static inline unsigned long bss_end(void)
return (unsigned long) &__bss_end; 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); extern int incaip_set_cpuclk(void);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment