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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user