X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=bertos%2Fkern%2Firq.c;h=85608147e1277af38adbdedb1fd8af89e94575c4;hb=32d1445272120a254d77ce8d1af1f527da7a2c17;hp=479ad67bf2e134d8e268171927c7919b335f0bb9;hpb=fe0a14d1434098bfd0780d06a2a7e55f27940d27;p=bertos.git diff --git a/bertos/kern/irq.c b/bertos/kern/irq.c index 479ad67b..85608147 100644 --- a/bertos/kern/irq.c +++ b/bertos/kern/irq.c @@ -48,7 +48,6 @@ #include // FIXME: move POSIX stuff to irq_posix.h - MOD_DEFINE(irq) // FIXME @@ -57,32 +56,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))