[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] GEMDOS from a interrupt?



Jo Even Skarstein wrote:
> 
> Hi!
> 
> I'm currently modifying Thierry Bousch's lpdev to spool to disk. As
> usual I've started coding long before I started thinking...
> 
> Spooling to disk works fine, but now that I'm going to work on the
> disk->printer code I believe I have a problem: Is it possible to call
> GEMDOS from a interrupt? I need to read from the spool-file from time
> to time (25K bursts), if this can't be done from the
> centronics-interrupt (MFP-int 0) I'll have to find another way to do
> it...

No, it's not possible for file IO. But you could try using a semaphor:
waiting for in the main loop and post in the interrupt handler works
fine on BSD and Solaris, so it might work on MiNT too.

Ralph