summaryrefslogtreecommitdiff
path: root/common/bootstage.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-22 11:05:30 (GMT)
committerTom Rini <trini@konsulko.com>2017-06-05 18:13:06 (GMT)
commit25e7dc6a6a798451973b2a3d7c02edc3658b270d (patch)
tree539affa59aa67cc86112c2159edf6ff4aaa3e83a /common/bootstage.c
parentff00226e0b55d08c55fca843ff9c4819b247e08c (diff)
downloadu-boot-fsl-qoriq-25e7dc6a6a798451973b2a3d7c02edc3658b270d.tar.xz
bootstage: Support relocating boostage data
Some boards cannot access pre-relocation data after relocation. Reserve space for this and copy it during preparation for relocation. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'common/bootstage.c')
-rw-r--r--common/bootstage.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/common/bootstage.c b/common/bootstage.c
index 32f4e8b..a6705af 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -484,6 +484,11 @@ int bootstage_unstash(void *base, int size)
return 0;
}
+int bootstage_get_size(void)
+{
+ return sizeof(struct bootstage_data);
+}
+
int bootstage_init(bool first)
{
struct bootstage_data *data;