Better hart startup indicators
This commit is contained in:
parent
ced7c79bd8
commit
e94eecd9a1
1 changed files with 2 additions and 1 deletions
|
@ -30,10 +30,11 @@ main()
|
||||||
} else {
|
} else {
|
||||||
while(started == 0) {}
|
while(started == 0) {}
|
||||||
__sync_synchronize();
|
__sync_synchronize();
|
||||||
printf("hart %d starting\n", cpuid());
|
printf("Hart/Core [%d]: Starting\n", cpuid());
|
||||||
kvminithart(); // turn on paging
|
kvminithart(); // turn on paging
|
||||||
trapinithart(); // install kernel trap vector
|
trapinithart(); // install kernel trap vector
|
||||||
plicinithart(); // ask PLIC for device interrupts
|
plicinithart(); // ask PLIC for device interrupts
|
||||||
|
printf("Hart/Core [%d]: Online\n", cpuid());
|
||||||
}
|
}
|
||||||
|
|
||||||
scheduler();
|
scheduler();
|
||||||
|
|
Loading…
Reference in a new issue