Skip to contentSkip to conversation

Catching interrupt from power switch

parisc-linux Jurij Smakov 1 participant 1 message Oct 8, 2001

lore
Share & tools
lore
#0 lore raw

Hi!

I am obsessed with idea of catching interrupt from power switch (it should be possible, according to Lasi docs) and making a clean shutdown. I thought, that when power button is set to "off", trap 2 (power failure interruption) will be generated. Strangely enough, it didn't. What's wrong? The I-bit in the PSW, controlling the masking/unmasking of this (and some other interruptions) seems to be set, so the interruption is unmasked. Anyone has any ideas?

Cheers,

Jurij