From b026f319cf43d9a82f682eb8c7f314a6e638a54e Mon Sep 17 00:00:00 2001 From: batt Date: Wed, 12 Nov 2008 21:39:28 +0000 Subject: [PATCH] Make irq manager only required when preemption is active. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1929 38d2e660-2303-0410-9eaa-f027e97ec537 --- examples/demo/demo.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/demo/demo.c b/examples/demo/demo.c index 9c2169cc..f4928c10 100644 --- a/examples/demo/demo.c +++ b/examples/demo/demo.c @@ -299,7 +299,10 @@ static cpu_stack_t monitor_stack[CONFIG_KERN_MINSTACKSIZE / sizeof(cpu_stack_t)] int main(int argc, char *argv[]) { emul_init(&argc, argv); - irq_init(); + + #if CONFIG_KERN_PREEMPT + irq_init(); + #endif timer_init(); buz_init(); kbd_init(); -- 2.25.1