summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/ppc64/Kconfig1
-rw-r--r--src/arch/ppc64/include/arch/stages.h2
-rw-r--r--src/arch/ppc64/stages.c5
3 files changed, 6 insertions, 2 deletions
diff --git a/src/arch/ppc64/Kconfig b/src/arch/ppc64/Kconfig
index 0699e910ce7c..da9c155917f9 100644
--- a/src/arch/ppc64/Kconfig
+++ b/src/arch/ppc64/Kconfig
@@ -1,5 +1,6 @@
config ARCH_PPC64
bool
+ select RAMSTAGE_CBMEM_TOP_ARG
config ARCH_BOOTBLOCK_PPC64
bool
diff --git a/src/arch/ppc64/include/arch/stages.h b/src/arch/ppc64/include/arch/stages.h
index a4939b1758ba..37e9f85c8c45 100644
--- a/src/arch/ppc64/include/arch/stages.h
+++ b/src/arch/ppc64/include/arch/stages.h
@@ -16,6 +16,6 @@
#include <main_decl.h>
-void stage_entry(void) __attribute__((section(".text.stage_entry")));
+void stage_entry(uintptr_t stage_arg) __attribute__((section(".text.stage_entry")));
#endif
diff --git a/src/arch/ppc64/stages.c b/src/arch/ppc64/stages.c
index 3cc9371ffee1..aacf45f88fd1 100644
--- a/src/arch/ppc64/stages.c
+++ b/src/arch/ppc64/stages.c
@@ -22,9 +22,12 @@
* linker script.
*/
+#include <cbmem.h>
#include <arch/stages.h>
-void stage_entry(void)
+void stage_entry(uintptr_t stage_arg)
{
+ if (!ENV_ROMSTAGE_OR_BEFORE)
+ _cbmem_top_ptr = stage_arg;
main();
}