summaryrefslogtreecommitdiff
path: root/arch/x86/lib/init_helpers.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2013-02-28 19:26:13 +0000
committerSimon Glass <sjg@chromium.org>2013-03-04 15:57:38 -0800
commit4b491b8ddeaaf6cf6a47d7102188c9a9c6b1b3d8 (patch)
tree689d5d93e94f3a431555d05d9ecf280c7f2ae898 /arch/x86/lib/init_helpers.c
parentbc2df1afb92435da6fb16310dac6b722bfaade9f (diff)
downloadu-boot-imx-4b491b8ddeaaf6cf6a47d7102188c9a9c6b1b3d8.zip
u-boot-imx-4b491b8ddeaaf6cf6a47d7102188c9a9c6b1b3d8.tar.gz
u-boot-imx-4b491b8ddeaaf6cf6a47d7102188c9a9c6b1b3d8.tar.bz2
x86: Add an __end symbol to signal the end of the U-Boot binary
With this symbol we can easy append something (e.g. an FDT) to the U-Boot binary and access it from within U-Boot. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'arch/x86/lib/init_helpers.c')
-rw-r--r--arch/x86/lib/init_helpers.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/lib/init_helpers.c b/arch/x86/lib/init_helpers.c
index 1a097f1..ff2d21f 100644
--- a/arch/x86/lib/init_helpers.c
+++ b/arch/x86/lib/init_helpers.c
@@ -188,7 +188,7 @@ int find_fdt(void)
gd->fdt_blob = _binary_dt_dtb_start;
#elif defined CONFIG_OF_SEPARATE
/* FDT is at end of image */
- gd->fdt_blob = (void *)(_end_ofs + _TEXT_BASE);
+ gd->fdt_blob = (ulong *)&_end;
#endif
/* Allow the early environment to override the fdt address */
gd->fdt_blob = (void *)getenv_ulong("fdtcontroladdr", 16,