aboutsummaryrefslogtreecommitdiff
path: root/machine/fdt.h
diff options
context:
space:
mode:
authorWesley W. Terpstra <wesley@sifive.com>2017-03-31 17:51:51 -0700
committerWesley W. Terpstra <wesley@sifive.com>2017-03-31 17:51:51 -0700
commit733fae9216f27b3d63c16f8608c3a5e2c6317afc (patch)
treec60cb17444b7acba19df7aeb168a743c789470fd /machine/fdt.h
parent078ea399c6c1f2d6e8461559bf8cc1ba34ca89b6 (diff)
downloadriscv-pk-733fae9216f27b3d63c16f8608c3a5e2c6317afc.zip
riscv-pk-733fae9216f27b3d63c16f8608c3a5e2c6317afc.tar.gz
riscv-pk-733fae9216f27b3d63c16f8608c3a5e2c6317afc.tar.bz2
clint: move hart wakeup till after all FDT parsing
The clint was wiping out information discovered by the plic. Initialize hart stacks as they are discovered. Then fill in clint+plic info Then wake the harts.
Diffstat (limited to 'machine/fdt.h')
-rw-r--r--machine/fdt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/machine/fdt.h b/machine/fdt.h
index 41c1b52..7f44db6 100644
--- a/machine/fdt.h
+++ b/machine/fdt.h
@@ -59,4 +59,7 @@ void query_harts(uintptr_t fdt);
void query_plic(uintptr_t fdt);
void query_clint(uintptr_t fdt);
+// The hartids of available harts
+extern uint64_t hart_mask;
+
#endif