test cache

This commit is contained in:
TXuian
2024-03-18 11:17:55 +08:00
parent c60f29277a
commit 50dab7b553
13 changed files with 85 additions and 49 deletions
@@ -66,8 +66,6 @@ void intr_irq_dispatch(struct trapframe* tf)
return;
}
spinlock_lock(&whole_kernel_lock);
DSB();
// DEBUG("CPU %d in\n", cur_cpuid());
struct TaskMicroDescriptor* current_task = cur_cpu()->task;
if (LIKELY(current_task != NULL)) {
@@ -95,7 +93,6 @@ void intr_irq_dispatch(struct trapframe* tf)
}
assert(current_task == cur_cpu()->task);
// DEBUG("CPU %d out\n", cur_cpuid());
spinlock_unlock(&whole_kernel_lock);
p_intr_driver->cpu_irq_enable();
}
@@ -53,8 +53,7 @@ void software_irq_dispatch(struct trapframe* tf)
p_intr_driver->cpu_irq_disable();
spinlock_lock(&whole_kernel_lock);
DSB();
// DEBUG("CPU %d in\n", cur_cpuid());
// get current task
struct TaskMicroDescriptor* cur_task = cur_cpu()->task;
/// @todo: Handle dead task
@@ -81,7 +80,6 @@ void software_irq_dispatch(struct trapframe* tf)
panic("Exit reaches");
}
// DEBUG("CPU %d out\n", cur_cpuid());
spinlock_unlock(&whole_kernel_lock);
p_intr_driver->cpu_irq_enable();
}