From 6964ba2410735e266ca42222fcff8c21377ced3d Mon Sep 17 00:00:00 2001 From: Susanooo Date: Thu, 12 Dec 2024 06:03:27 +0000 Subject: [PATCH] Fix some spelling mistakes Signed-off-by: Susanooo --- src/kernel/cpu.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/kernel/cpu.rs b/src/kernel/cpu.rs index 510a723..8393c94 100644 --- a/src/kernel/cpu.rs +++ b/src/kernel/cpu.rs @@ -202,8 +202,8 @@ impl Cpu { pub fn schedule_to(&mut self, next_vcpu: Vcpu) { if let Some(prev_vcpu) = &self.active_vcpu { // On RISC-V, only one VM goes into this func also, since risc-v - // depends on traping to hypervisor to inject timer interrupt - // TODO: Use Sstc Extension to allow VS to receive its own timer interrupt without traping into hypervisor + // depends on trapping to hypervisor to inject timer interrupts + // TODO: Use Sstc Extension to allow VS to receive its own timer interrupts without trapping into hypervisor // This way, even when vm doesn't change, we should save prev_cpu's state prev_vcpu.set_state(VcpuState::Ready); -- Gitee