![]() |
![]() |
![]() |
Enable hardware interrupts
#include <sys/neutrino.h> void InterruptEnable( void );
libc
The InterruptEnable() function enables all hardware interrupts. It may be called from a thread or from an interrupt handler. Before calling this function the thread must request I/O privity by calling:
ThreadCtl( _NTO_TCTL_IO, 0 );
If the thread doesn't do this, it might SIGSEGV when InterruptUnlock() is called.
This function should be called as quickly as possible after an InterruptDisable() call.
![]() |
Use InterruptLock() and InterruptUnlock() instead of InterruptDisable() and InterruptEnable(). The InterruptLock()/InterruptUnlock() functions perform the intended function on SMP hardware, and allow your interrupt thread to run on any processor in the system. |
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | Yes |
Signal handler | Yes |
Thread | Yes |
InterruptDisable(), InterruptLock(), InterruptMask(), InterruptUnlock(), InterruptUnmask(), ThreadCtl()
![]() |
![]() |
![]() |