1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 08:42:12 +02:00

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>
This commit is contained in:
Simon Glass
2017-05-22 05:05:30 -06:00
committed by Tom Rini
parent ff00226e0b
commit 25e7dc6a6a
4 changed files with 52 additions and 0 deletions

View File

@@ -331,6 +331,13 @@ int bootstage_stash(void *base, int size);
*/
int bootstage_unstash(void *base, int size);
/**
* bootstage_get_size() - Get the size of the bootstage data
*
* @return size of boostage data in bytes
*/
int bootstage_get_size(void);
/**
* bootstage_init() - Prepare bootstage for use
*
@@ -400,6 +407,11 @@ static inline int bootstage_unstash(void *base, int size)
return 0; /* Pretend to succeed */
}
static inline int bootstage_get_size(void)
{
return 0;
}
static inline int bootstage_init(bool first)
{
return 0;