Thanks All of you for your help.
I have tracked my problem down but I’m not sure I understand why it
I have a situation with a main source file main.c, a souce file
containing access fuctions to a PC104 card in my stack cardfunct.c,
and a seperate isr source file isr.c.
Main.c initializes my card creates a proxy, and hooks the int#, and
handles proxy messages.
Cardfunct.c functions allow me to configure my card as well as clear
an interrupt generated by the card (just an inp(address) function).
Isr.c only calls a function from cardfunct.c to clear the interrupt
and then returns a proxy message.
The only file that is compiled with stack checking disabled is
isr.c. Whe I run the process after this compilation the machine locks
completely requiring hard reboot. If instead I comment out the
function call to cardfunct.c inside the isr and just put the inline
code (inp(address)), compile and execute it all works fine. It seems
to be an issue calling an outside function from inside the ISR. Could
someone please explain…
Thansk for your time and help