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

MiNT context switching



Hi all!

Maybe you know that MiNT doesn't switch contexts when a program is in
supervisor mode. It also doesn't when the flock (floppy locking) variable
is set - so I wonder why is this so?
If a program accesses the floppy controller directly (which should be the
BIOS only), it has to be in supervisor anyway, and it shouldn't switch
back and leave the flock set.
So I can't see any effect of this restriction - just making it impossible 
to write an interrupt driven floppy driver. Because when such a driver 
has given a command to the controller and sleeps while waiting for the 
completion of the command, MiNT does not switch to another process and 
there's no more advantage.
Maybe someone can tell me if I've overseen something.

Ciao,
Stephan 


-----------------------------------------------------------
Stephan Haslbeck
Student of Computer Science, Technical University of Munich

std mail: Agricolastr. 61, D-80686 Muenchen
email: haslbecs@informatik.tu-muenchen.de
-----------------------------------------------------------
Es gibt keine Probleme, nur Loesungen.
-----------------------------------------------------------