From ecc3d927e252b3fa278b5320f16364fc14d61220 Mon Sep 17 00:00:00 2001 From: bernie Date: Mon, 25 Aug 2008 11:28:38 +0000 Subject: [PATCH] irq: suppress warning on !CONFIG_KERN_PREEMPT git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1683 38d2e660-2303-0410-9eaa-f027e97ec537 --- bertos/kern/irq.c | 3 +++ 1 file changed, 3 insertions(+) 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); -- 2.25.1