diff options
author | Wesley W. Terpstra <wesley@sifive.com> | 2017-03-31 17:51:51 -0700 |
---|---|---|
committer | Wesley W. Terpstra <wesley@sifive.com> | 2017-03-31 17:51:51 -0700 |
commit | 733fae9216f27b3d63c16f8608c3a5e2c6317afc (patch) | |
tree | c60cb17444b7acba19df7aeb168a743c789470fd /machine/fdt.h | |
parent | 078ea399c6c1f2d6e8461559bf8cc1ba34ca89b6 (diff) | |
download | riscv-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.h | 3 |
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 |