Adam Meyerowitz wrote:
> I have made an assembly language procedure using NASM and have linked it into
> my module.  If I call the assembly language procedure during init_module
> everything
> works as expected.  If I call the procedure in an interrupt handler it
> crashes the
> system.  Is there anything special I must do before,during or after the
> call to
> the asm function to make it not crash?

I do assembler stuff (with __asm__ in c code ) for image processing,
and to avoid this pb some rules :

- be sure that all your used register are saved and restored and disable
interrupt during handler.
- carefull with FP and MMX using in handler.
- define your function as __volatile__ which makes them an inseparate
block code. (I think)
- avoid using special registers like esp ( stack pointer !! used by the
system ) prefer using a copy in ebp. 

Can you be more precise with your assembler pb ? ( will help me to
understand your pb)

--
Kumsta Christophe
<[EMAIL PROTECTED]>
Real-Time System developper
RT-Linux/RTAI ( Use the Source Luck !)
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/

Reply via email to