aboutsummaryrefslogtreecommitdiff
path: root/src/proc
diff options
context:
space:
mode:
Diffstat (limited to 'src/proc')
-rw-r--r--src/proc/sched.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/proc/sched.rs b/src/proc/sched.rs
index 613336e..701f165 100644
--- a/src/proc/sched.rs
+++ b/src/proc/sched.rs
@@ -39,6 +39,8 @@ impl Scheduler {
// pop front, push back
pub fn do_schedule() {
+ // TODO: remove this spinlock, because we should protect the scheduler
+ // with irq_save/restore
if SCHEDULER.is_locked() {
panic!("scheduler lock has been taken, something wrong");
}