summaryrefslogtreecommitdiff
path: root/src/arch/mips/boot.c
diff options
context:
space:
mode:
authorIonela Voinescu <ionela.voinescu@imgtec.com>2015-05-26 17:15:42 +0100
committerPatrick Georgi <pgeorgi@google.com>2015-06-10 22:22:15 +0200
commit82efc7600a6cfd5bad7600a1341d3ba4182e6324 (patch)
tree54cd79f4cfbb3684cb39a2e4e179bfc6f7543a29 /src/arch/mips/boot.c
parent1d4c305887642759ae89d47804165e534829959c (diff)
downloadcoreboot-82efc7600a6cfd5bad7600a1341d3ba4182e6324.tar.xz
mips: CBMEM table reference is passed to payload
The coreboot table address is passed as an argument when jumping to payload. With this change depthcharge is loaded and executed properly on urara. Change-Id: I230d474a91b8d38aff070aa4aac623b6c8f0809c Signed-off-by: Ionela Voinescu <ionela.voinescu@imgtec.com> Reviewed-on: http://review.coreboot.org/10460 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org> Reviewed-by: Patrick Georgi <pgeorgi@google.com>
Diffstat (limited to 'src/arch/mips/boot.c')
-rw-r--r--src/arch/mips/boot.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/arch/mips/boot.c b/src/arch/mips/boot.c
index 2ac50b3183..c09af0539a 100644
--- a/src/arch/mips/boot.c
+++ b/src/arch/mips/boot.c
@@ -22,5 +22,8 @@
void arch_prog_run(struct prog *prog)
{
- stage_exit(prog_entry(prog));
+ void *cb_tables = prog_entry_arg(prog);
+ void (*doit)(void *) = prog_entry(prog);
+
+ doit(cb_tables);
}