summaryrefslogtreecommitdiff
path: root/common/bootstage.c
diff options
context:
space:
mode:
authorTom Rini <[email protected]>2024-07-15 12:42:00 +0100
committerTom Rini <[email protected]>2024-07-19 16:48:07 -0600
commitb81e31a1e6c5e0b20537fa8ffba67696dec46d58 (patch)
tree32de4fc057b04eec6cb089be0cb27ce19f90d6ec /common/bootstage.c
parent6b8df6055ab5b37c27679a5cd8ba61f702cab120 (diff)
bootstash: Do not provide a default address for all
A valid memory location to stash bootstage information at will be architecture dependent. Move the existing defaults to the main Kconfig file for this option and set 0x0 as the default only for sandbox. Signed-off-by: Simon Glass <[email protected]> Signed-off-by: Tom Rini <[email protected]>
Diffstat (limited to 'common/bootstage.c')
-rw-r--r--common/bootstage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/bootstage.c b/common/bootstage.c
index df83eb684c0..b6c268d9f47 100644
--- a/common/bootstage.c
+++ b/common/bootstage.c
@@ -500,6 +500,7 @@ int bootstage_unstash(const void *base, int size)
return 0;
}
+#if IS_ENABLED(CONFIG_BOOTSTAGE_STASH)
int _bootstage_stash_default(void)
{
return bootstage_stash(map_sysmem(CONFIG_BOOTSTAGE_STASH_ADDR, 0),
@@ -513,6 +514,7 @@ int _bootstage_unstash_default(void)
return bootstage_unstash(stash, CONFIG_BOOTSTAGE_STASH_SIZE);
}
+#endif
int bootstage_get_size(void)
{