I'm trying to port a DOS program that HAS to be real-time.
It's a microcontroller programmer, and the timing has to
be correct to work.  I've got everything worked out (I think)
because it half-works.  I think what is keeping it from working
is that in several places where the timing of the signals on the
par. port is important, the original DOS program disabled
interrupts, then enabled them again at the end of the function.
I just removed these lines hoping the thing would work, it does
not.

The original code: asm volatile ("cli")
caused a seg. fault.  So I tried using the cli() functions defined
in system.h, with the same results.

I say it's half working because the program detects the presence of
the microcontroller hardware, but I think in the relatively long time
it takes to do more important things (like program it!), the timing goes
to crap and it dosen't work.

I think that maybe cli() and sti() should not be used in user mode, but
I don't understand why it's in asm/system.h if that's true.  I really
don't want to tackle writing a whole seperate driver and then interfacing
with it.

I also tried turning the scheduling priority up to -20 (the highest
value) with no luck.

Any suggestions?

--
T. Weston Sewell
[EMAIL PROTECTED]


---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to