aboutsummaryrefslogtreecommitdiff
path: root/pk/minit.c
diff options
context:
space:
mode:
authorAndrew Waterman <waterman@cs.berkeley.edu>2015-07-05 16:52:05 -0700
committerAndrew Waterman <waterman@cs.berkeley.edu>2015-07-05 16:52:05 -0700
commita6da37f21720d12f0295876ce426bc081a62a7d8 (patch)
treece3a531905b52858899a470eca3bfb43050de536 /pk/minit.c
parent027ba300cbeaa425218fd472e1fcf45c785f645c (diff)
downloadpk-a6da37f21720d12f0295876ce426bc081a62a7d8.zip
pk-a6da37f21720d12f0295876ce426bc081a62a7d8.tar.gz
pk-a6da37f21720d12f0295876ce426bc081a62a7d8.tar.bz2
New M-mode timer and SBI call to use it
Diffstat (limited to 'pk/minit.c')
-rw-r--r--pk/minit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/pk/minit.c b/pk/minit.c
index a040e2b..b8a0b48 100644
--- a/pk/minit.c
+++ b/pk/minit.c
@@ -79,8 +79,10 @@ static void init_other_hart()
write_csr(sptbr, root_page_table);
// then make sure we're in bounds
- if (HLS()->hart_id >= num_harts)
- panic("too many harts");
+ if (HLS()->hart_id >= num_harts) {
+ while (1)
+ wfi();
+ }
boot_other_hart();
}