diff options
author | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-07-05 16:52:05 -0700 |
---|---|---|
committer | Andrew Waterman <waterman@cs.berkeley.edu> | 2015-07-05 16:52:05 -0700 |
commit | a6da37f21720d12f0295876ce426bc081a62a7d8 (patch) | |
tree | ce3a531905b52858899a470eca3bfb43050de536 /pk/minit.c | |
parent | 027ba300cbeaa425218fd472e1fcf45c785f645c (diff) | |
download | pk-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.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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(); } |