check_stack under Neutrino?

Hi Community !!!

is it possible and useful for a ISR handler i.e with InterruptAttach()
to use

#pragma off(check_stack);

#pragma on(check_stack);

like in QNX 4 ???

In InterruptAttachEvent() we don’t have a ISR handler, so
we dont need

#pragma off(check_stack);

#pragma on(check_stack);

is this right?

right.

Thank you lestat

But if I place it like this:

#pragma off(check_stack);
const struct sigevent *handler( void *area, int id )
{
//do something
}
else
return (EXIT_SUCCESS);
}
#pragma on(check_stack);

nothing will happen it only works without #pragma on and off (check_stack);

and pleas explain me exactly what is the reason for
#pragma off(check_stack);
and
#pragma on(check_stack);

what’s the brainchild behind this ???

Thank You

The idea is that while in ISR the stack is that of the kernel and not that of the process/thread. The stack checking is usually done against the thread stack and doing that wile in the ISR will result in undefined behavior (that’s under QNX4). I don’t know how gcc under QNX6 works though. I don’t recall having do deal with these issue under gcc.