optimize the tests makefiles, add unit tests for btrie key allocator
[lunaix-os.git] / lunaix-os / hal / irq.c
index b4bc0ec601a483c691c174339fafea397b4e8468..97bbb792c5379b9af8ab4c1e5c19a151f9bcdca7 100644 (file)
@@ -93,7 +93,8 @@ irq_declare(enum irq_type type, irq_servant callback,
     *irq = (struct irq_object) {
         .type = type,
         .serve = callback ?: __default_servant,
-        .irq_extra = irq_extra
+        .irq_extra = irq_extra,
+        .vector = IRQ_VECTOR_UNSET
     };
 
     if (type == IRQ_LINE) {