TRACEMSG("preempting %p:%s", CurrentProcess, proc_currentName());
-// FIXME: this still break havocs, probably because of some reentrancy issue
+// FIXME: this still breaks havoc, probably because of some reentrancy issue
#if 0
SCHED_ENQUEUE(CurrentProcess);
proc_schedule();
IRQ_ASSERT_ENABLED();
ASSERT(preempt_forbid_cnt == 0);
- // Will invoke proc_preempt() in interrupt context
+ // Will invoke proc_switch() in interrupt context
kill(0, SIGUSR1);
}
MOD_CHECK(irq);
MOD_CHECK(timer);
- irq_register(SIGUSR1, proc_preempt);
+ irq_register(SIGUSR1, proc_schedule);
timer_setSoftint(&preempt_timer, proc_preempt_timer, NULL);
timer_setDelay(&preempt_timer, CONFIG_KERN_QUANTUM);