DragonFly BSD
DragonFly bugs List (threaded) for 2004-02
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: machine can not reboot itself while ed1 is present (sources of 19th feb 2004)


From: Dave Cuthbert <dacut@xxxxxxxxxxxxx>
Date: Fri, 20 Feb 2004 14:10:31 -0500

Matthew Dillon wrote:
    It sounds like an interrupt is not getting deasserted and the system
    is livelocking until the card gets pulled out and stops deasserting
    the interrupt.  My guess.

Hm. It would be useful, from a debugging/development standpoint, if the kernel could heuristically detect this.


I'm thinking of something like:

interrupt_loop_counter = 0;

while (interrupt_asserted()) {
    if (++loop_counter > MAX_INTERRUPT_CYCLES) {
        disable_interrupt();
        print_a_message_about_this();
        enter_debugger();
        reenable_interrupt();
    }

    handle_interrupts();
}



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]