Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/irq.c

    rb366a6f4 r78ffb70  
    275275{
    276276        /*
    277          * If the kernel console override is on,
    278          * then try first the kernel handlers
    279          * and eventually fall back to uspace
    280          * handlers.
     277         * If the kernel console is silenced,
     278         * then try first the uspace handlers,
     279         * eventually fall back to kernel handlers.
    281280         *
    282          * In the usual case the uspace handlers
    283          * have precedence.
     281         * If the kernel console is active,
     282         * then do it the other way around.
    284283         */
    285        
    286         if (console_override) {
    287                 irq_t *irq = irq_dispatch_and_lock_kernel(inr);
     284        if (silent) {
     285                irq_t *irq = irq_dispatch_and_lock_uspace(inr);
    288286                if (irq)
    289287                        return irq;
    290288               
    291                 return irq_dispatch_and_lock_uspace(inr);
    292         }
    293        
    294         irq_t *irq = irq_dispatch_and_lock_uspace(inr);
     289                return irq_dispatch_and_lock_kernel(inr);
     290        }
     291       
     292        irq_t *irq = irq_dispatch_and_lock_kernel(inr);
    295293        if (irq)
    296294                return irq;
    297295       
    298         return irq_dispatch_and_lock_kernel(inr);
     296        return irq_dispatch_and_lock_uspace(inr);
    299297}
    300298
Note: See TracChangeset for help on using the changeset viewer.