]> Zhao Yanbai Git Server - minix.git/commitdiff
if verbore=1 tell us who registers which irq handler
authorTomas Hruby <tom@minix3.org>
Thu, 21 Oct 2010 17:07:12 +0000 (17:07 +0000)
committerTomas Hruby <tom@minix3.org>
Thu, 21 Oct 2010 17:07:12 +0000 (17:07 +0000)
- a useful piece of information when debugging

kernel/system/do_irqctl.c

index 08e1076349dced22b30bd178f7b37db57bf7bb18..0a1c33142b700cd33e6aef2a392acd2d2dbc5c69 100644 (file)
@@ -9,6 +9,7 @@
  *      ,,          ,,          (returns index of irq hook assigned at kernel)
  */
 
+#include "kernel/kernel.h"
 #include "kernel/system.h"
 
 #include <minix/endpoint.h>
@@ -112,6 +113,8 @@ PUBLIC int do_irqctl(struct proc * caller, message * m_ptr)
       hook_ptr->notify_id = notify_id;         /* identifier to pass */        
       hook_ptr->policy = m_ptr->IRQ_POLICY;    /* policy for interrupts */
       put_irq_handler(hook_ptr, irq_vec, generic_handler);
+      DEBUGBASIC(("IRQ %d handler registered by %s / %d\n",
+                             irq_vec, caller->p_name, caller->p_endpoint));
 
       /* Return index of the IRQ hook in use. */
       m_ptr->IRQ_HOOK_ID = irq_hook_id + 1;