Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - InterruptEnable() leading to a SIGINT fault: (2 Items)
   
InterruptEnable() leading to a SIGINT fault  
Hi,

I have section of code (built on QNX 6.5) which accesses hardware and during the access I wish to disable interrupts. So
 I am doing this:

/////////////////////////////////////////////////////////////
ThreadCtl( _NTO_TCTL_IO, 0 );
InterruptDisable();

// Here I call my functions to access hardware

InterruptEnable();
/////////////////////////////////////////////////////////////

Now, when InterruptEnable() is called, a SIGINT fault occurs and then my processes crashes. This code was previous being
 used on QNX 6.3 but now I see the SIGINT fault on QNX 6.5.

I would like to know what is going wrong and how to debug this issue. And also what the SIGINT fault actually means 
(what is the RTOS trying to indicate here).

And info would be appreciated.

Thanks
Sunil
Re: InterruptEnable() leading to a SIGINT fault  
I found a solution for this. I raised the priority of my thread before calling the Interrupt disable and enable 
functions. Then everything went fine and there were no crashes. I am not sure why I saw a crash when the priority was 
lower.