aboutsummaryrefslogtreecommitdiff
path: root/src/arch/mips/stages.c
diff options
context:
space:
mode:
authorArthur Heymans <arthur@aheymans.xyz>2019-10-28 23:26:13 +0100
committerPatrick Georgi <pgeorgi@google.com>2019-11-04 11:40:25 +0000
commita1b700ff74981ecb84e47e132a60d7f0d5312676 (patch)
tree97af20e80157b51857e0fa97ec2834b623ed9c84 /src/arch/mips/stages.c
parent879c9fc4210fa508fdc7e23e6a53709d5751d513 (diff)
arch/mips: Pass cbmem_top to ramstage via calling argument
This allows to use a common cbmem_top implementation. Change-Id: I85efe3899607854c36d0ec594868f690eb724a7f Signed-off-by: Arthur Heymans <arthur@aheymans.xyz> Reviewed-on: https://review.coreboot.org/c/coreboot/+/36421 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nico Huber <nico.h@gmx.de>
Diffstat (limited to 'src/arch/mips/stages.c')
-rw-r--r--src/arch/mips/stages.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/mips/stages.c b/src/arch/mips/stages.c
index 0971e98905..bf31153d98 100644
--- a/src/arch/mips/stages.c
+++ b/src/arch/mips/stages.c
@@ -11,10 +11,13 @@
* GNU General Public License for more details.
*/
+#include <cbmem.h>
#include <arch/stages.h>
#include <arch/cache.h>
-void stage_entry(void)
+void stage_entry(uintptr_t stage_arg)
{
+ if (!ENV_ROMSTAGE_OR_BEFORE)
+ _cbmem_top_ptr = stage_arg;
main();
}