From 23ab37ad78673166a8300584d177ace77fca5101 Mon Sep 17 00:00:00 2001 From: "Wesley W. Terpstra" Date: Wed, 22 Mar 2017 14:35:13 -0700 Subject: SBI: a0+a1 hold hartid+dtb pointer between boot loader stages --- bbl/bbl.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bbl') diff --git a/bbl/bbl.c b/bbl/bbl.c index 9553ddb..3550c9a 100644 --- a/bbl/bbl.c +++ b/bbl/bbl.c @@ -8,17 +8,17 @@ static const void* entry_point; -void boot_other_hart() +void boot_other_hart(uintptr_t dtb) { const void* entry; do { entry = entry_point; mb(); } while (!entry); - enter_supervisor_mode(entry, read_csr(mhartid), 0); + enter_supervisor_mode(entry, read_csr(mhartid), dtb); } -void boot_loader() +void boot_loader(uintptr_t dtb) { extern char _payload_start; #ifdef PK_ENABLE_LOGO @@ -26,5 +26,5 @@ void boot_loader() #endif mb(); entry_point = &_payload_start; - boot_other_hart(); + boot_other_hart(dtb); } -- cgit v1.1