Re: Interrupt on pressing reset button

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



IMHO this is not possible as this is a NON maskable interrupt,
thus the processor MUST do the jump and there is no way
a programmer (think OS) can hook into that.

... and so it SHOULD. Think the other way, you have
a hung OS (locked) and you need to reset. IF this
was maskable you could press that button, but nothing
wopuld happen as the OS already is dead, requiring a 
power cycle.

If you want something to reboot the computer by
pressing a button, i.e. no keyboard, use the
power button as this is maskable. Catch this 
through inittab and shut down the computer 
nicely (I do this one a few machines).



Jobst


On Wed, Jun 02, 2010 at 05:03:21PM +0530, premrajm@xxxxxxxxxxx (premrajm@xxxxxxxxxxx) wrote:
> Hi,
> 
> On Centos-5.3, is it possible to capture an interrupt when the reset 
> button on the Supermicro Box is pressed ?
> 
> 
> Regards,
> Premraj M
> 
>  
> Disclaimer : This message is proprietary to Smartlink Network Systems Ltd. and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. The company accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus.
> 
> 
> ______________________________________________________________________________
> 
> This email has been scrubbed for your protection by SecureMX.
> For more information visit http://securemx.in
> ______________________________________________________________________________
> 

> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos


-- 
A computer without Microsoft is like chocolate cake without ketchup!

  | |0| |   Jobst Schmalenbach, jobst@xxxxxxxxxxxxxx, General Manager
  | | |0|   Barrett Consulting Group P/L & The Meditation Room P/L
  |0|0|0|   +61 3 9532 7677, POBox 277, Caulfield South, 3162, Australia
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux