Skip to content

Commit 397dc32

Browse files
committed
fix: remove wakeup in interrupt init
Signed-off-by: Niu Zhihong <zhihong@nzhnb.com>
1 parent 3eba641 commit 397dc32

1 file changed

Lines changed: 0 additions & 9 deletions

File tree

src/arch/riscv64/interrupt_main.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -108,15 +108,6 @@ void InterruptInit(int, const char**) {
108108
sbi_set_timer(kInterval);
109109

110110
klog::Info("Hello InterruptInit\n");
111-
112-
// 唤醒其余 core
113-
for (size_t i = 0; i < Singleton<BasicInfo>::GetInstance().core_count; i++) {
114-
auto ret = sbi_hart_start(i, reinterpret_cast<uint64_t>(_boot), 0);
115-
if ((ret.error != SBI_SUCCESS) &&
116-
(ret.error != SBI_ERR_ALREADY_AVAILABLE)) {
117-
klog::Warn("hart %d start failed: %d\n", i, ret.error);
118-
}
119-
}
120111
}
121112

122113
void InterruptInitSMP(int, const char**) {

0 commit comments

Comments
 (0)