diff options
author | Oleksij Rempel <linux@rempel-privat.de> | 2019-04-10 09:04:39 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2019-04-23 10:32:06 +0200 |
commit | 4de280c6ac3de90e170f8376859daac54b6291bc (patch) | |
tree | d99aec721d8b69609fbc4089def3054f94c44c36 /arch/mips/boot | |
parent | ea569a0afd6a2e9a84418cd18ddeaeefaa5eae39 (diff) | |
download | barebox-4de280c6ac3de90e170f8376859daac54b6291bc.tar.gz barebox-4de280c6ac3de90e170f8376859daac54b6291bc.tar.xz |
MIPS: relocation: pass ram size to pbl_main_entry
To make barebox dynamically relocatable it should know
the RAM size to be able to calculate proper new location.
Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/mips/boot')
-rw-r--r-- | arch/mips/boot/main_entry-pbl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/mips/boot/main_entry-pbl.c b/arch/mips/boot/main_entry-pbl.c index b40887b064..28eaa8791f 100644 --- a/arch/mips/boot/main_entry-pbl.c +++ b/arch/mips/boot/main_entry-pbl.c @@ -18,7 +18,7 @@ extern void *input_data_end; unsigned long free_mem_ptr; unsigned long free_mem_end_ptr; -void pbl_main_entry(void *fdt, void *fdt_end); +void pbl_main_entry(void *fdt, void *fdt_end, u32 ram_size); static unsigned long *ttb; @@ -33,7 +33,8 @@ static void barebox_uncompress(void *compressed_start, unsigned int len) pbl_barebox_uncompress((void*)TEXT_BASE, compressed_start, len); } -void __section(.text_entry) pbl_main_entry(void *fdt, void *fdt_end) +void __section(.text_entry) pbl_main_entry(void *fdt, void *fdt_end, + u32 ram_size) { u32 pg_start, pg_end, pg_len, fdt_len; void *fdt_new; |