X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Firq.c;h=0bdbda854780810c69118343e406b8b2b6c308c6;hb=39e200e1f43474a96888f97e2271728c9605ccbe;hp=42012db9cde0ea0268f2c76e49b74331bc5984d7;hpb=4db7032d2c1813b45dceef2af5b08d765232798b;p=bertos.git diff --git a/bertos/kern/irq.c b/bertos/kern/irq.c index 42012db9..0bdbda85 100644 --- a/bertos/kern/irq.c +++ b/bertos/kern/irq.c @@ -31,7 +31,6 @@ * * \brief Process scheduler (public interface). * - * \version $Id: proc.h 1646 2008-08-17 13:49:48Z bernie $ * \author Bernie Innocenti * * Still in development, disable nightly test for now @@ -48,7 +47,6 @@ #include // FIXME: move POSIX stuff to irq_posix.h - MOD_DEFINE(irq) // FIXME @@ -57,32 +55,7 @@ static void (*irq_handlers[100])(void); /* signal handler */ void irq_entry(int signum) { -#if CONFIG_KERN_PREEMPT - Process * const old_process = CurrentProcess; -#endif - irq_handlers[signum](); - -#if CONFIG_KERN_PREEMPT - ASSERT2(CurrentProcess, "no idle proc?"); - - if (old_process != CurrentProcess) - { - IRQ_DISABLE; - - TRACEMSG("switching from %p:%s to %p:%s", - old_process, old_process ? old_process->monitor.name : "---", - CurrentProcess, proc_currentName()); - - if (old_process) - swapcontext(&old_process->context, &CurrentProcess->context); - else - setcontext(&CurrentProcess->context); - - IRQ_ENABLE; - } - TRACEMSG("resuming %p:%s", CurrentProcess, CurrentProcess->monitor.name); -#endif // CONFIG_KERN_PREEMPT } void irq_register(int irq, void (*callback)(void))