Re: interrupt function

From: Richard B. Johnson
Date: Thu Jul 22 2004 - 21:42:14 EST

If the device at 0x300 was interrupting, you would get an
interrupt and it will bump the count shown in your ISR.

Whatever that device at 0x300 is, needs to be programmed
to generate hardware interrupts. They don't happen by
magic. Usually, if edge triggered, you will only get
one interrupt until you put some code in your ISR to
handle that interrpt (make the hardware happy so it will
generate another).

If the interrupt is level triggered, code such as yours
will hang the machine because there is no ISR code to
service the hardware so the interrupt will be TRUE forever.

Dick Johnson
Penguin : Linux version 2.4.26 on an i686 machine (5570.56 BogoMips).
Note 96.31% of all statistics are fiction.

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at