From 896e3e9c5247c54f2b509e4044b61c53ff729261 Mon Sep 17 00:00:00 2001 From: Michael Lotz Date: Wed, 18 Feb 2009 17:52:51 +0000 Subject: [PATCH] Fix wrong check, thanks Axel :-) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29244 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/int.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/kernel/int.c b/src/system/kernel/int.c index 03ea1dc09f..d721c09998 100644 --- a/src/system/kernel/int.c +++ b/src/system/kernel/int.c @@ -40,7 +40,7 @@ struct io_handler { }; struct io_vector { - struct io_handler * handler_list; + struct io_handler *handler_list; spinlock vector_lock; int32 enable_count; bool no_lock_vector; @@ -299,7 +299,7 @@ install_io_interrupt_handler(long vector, interrupt_handler handler, void *data, io->func = handler; io->data = data; io->use_enable_counter = (flags & B_NO_ENABLE_COUNTER) == 0; - io->no_handled_info = (flags & B_NO_HANDLED_INFO) == 0; + io->no_handled_info = (flags & B_NO_HANDLED_INFO) != 0; // Disable the interrupts, get the spinlock for this irq only // and then insert the handler