diff options
Diffstat (limited to 'bbl/bbl.c')
-rw-r--r-- | bbl/bbl.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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); } |