Fix wrong check, thanks Axel :-)
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29244 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -40,7 +40,7 @@ struct io_handler {
|
|||||||
};
|
};
|
||||||
|
|
||||||
struct io_vector {
|
struct io_vector {
|
||||||
struct io_handler * handler_list;
|
struct io_handler *handler_list;
|
||||||
spinlock vector_lock;
|
spinlock vector_lock;
|
||||||
int32 enable_count;
|
int32 enable_count;
|
||||||
bool no_lock_vector;
|
bool no_lock_vector;
|
||||||
@@ -299,7 +299,7 @@ install_io_interrupt_handler(long vector, interrupt_handler handler, void *data,
|
|||||||
io->func = handler;
|
io->func = handler;
|
||||||
io->data = data;
|
io->data = data;
|
||||||
io->use_enable_counter = (flags & B_NO_ENABLE_COUNTER) == 0;
|
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
|
// Disable the interrupts, get the spinlock for this irq only
|
||||||
// and then insert the handler
|
// and then insert the handler
|
||||||
|
|||||||
Reference in New Issue
Block a user