From: bernie Date: Mon, 25 Aug 2008 11:28:38 +0000 (+0000) Subject: irq: suppress warning on !CONFIG_KERN_PREEMPT X-Git-Tag: 2.0.0~251 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ecc3d927e252b3fa278b5320f16364fc14d61220;p=bertos.git irq: suppress warning on !CONFIG_KERN_PREEMPT git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1683 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/kern/irq.c b/bertos/kern/irq.c index c8946319..dba432ef 100644 --- a/bertos/kern/irq.c +++ b/bertos/kern/irq.c @@ -53,7 +53,9 @@ 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](); @@ -87,6 +89,7 @@ void irq_register(int irq, void (*callback)(void)) void irq_init(void) { struct sigaction act; + act.sa_handler = irq_entry; sigemptyset(&act.sa_mask); //sigaddset(&act.sa_mask, irq);