summaryrefslogtreecommitdiffstats
path: root/arch/nios2
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2012-01-18 02:07:33 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2012-01-23 09:43:28 +0100
commit463229490e5624f55a968d9321334f441a981ef2 (patch)
treeb42df7c0d72a08efcaca576b2ab7c542c6f300db /arch/nios2
parent4bcf52aa6635cac1b88c513f90f732595979cf94 (diff)
downloadbarebox-463229490e5624f55a968d9321334f441a981ef2.tar.gz
barebox-463229490e5624f55a968d9321334f441a981ef2.tar.xz
introduce barebox_bare_init_size to known the bare_init size and check it
this allow to check we do not exceed the size of the SRAM as example introduce BAREBOX_MAX_BARE_INIT_SIZE the maximum size of bare_init this will allow your bare_init will fit in SRAM as example ARCH can overwrite it via ARCH_BAREBOX_MAX_BARE_INIT_SIZE Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/nios2')
-rw-r--r--arch/nios2/cpu/barebox.lds.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/nios2/cpu/barebox.lds.S b/arch/nios2/cpu/barebox.lds.S
index 04bfdf8ad1..127e1bf3ad 100644
--- a/arch/nios2/cpu/barebox.lds.S
+++ b/arch/nios2/cpu/barebox.lds.S
@@ -44,9 +44,12 @@ SECTIONS
_stext = .;
__text = .;
_text = .;
+ __bare_init_start = .;
*(.text_entry)
+ __bare_init_end = .;
*(.text)
}
+ BAREBOX_BARE_INIT_SIZE
. = ALIGN(4);
.rodata : { *(.rodata) }