Can BUG() also be used "safely" in interrupts?

Ingo Oeser
2002-05-17T07:02:18Z

Hi there,

I have a routine to be used in an ISR or BH, where I like to use
BUG(), to flag real bugs the caller produces, if he uses it with
wrong arguments (namely: check for asserted interrupts according
to a mask and flag an BUG(), if the mask is bogus).

So can BUG() be used in an ISR or BH?

Thanks & Regards

Ingo Oeser
--
Science is what we can tell a computer. Art is everything else. --- D.E.Knuth