Re: Bios

Rik van Riel (H.H.vanRiel@phys.uu.nl)
Mon, 18 May 1998 19:26:28 +0200 (MET DST)


On Sun, 17 May 1998, Marinus wrote:

> Bios calls under Linux a big no no ?

Linux runs in Protected Mode and is multitasking and
somewhat reentrant. BIOS runs in real-mode, and it's
functions are non-reentrant. This means you can't do
anything else while the BIOS function runs. Plus you
have to switch back and forth between real and PM...

> recently I tried this on 2.0.33 & 2.1.102
> mov eax,13h
> int 10h

You tried to call DOS assembly from Linux userspace?!?

> as a little test, might it not work due to Linux virtualizing the ports
> ?
> Is it always a good idea to let the kernel dictate port usage ?

YES! Unless you run in an exokernel environment, and even
there the port usage should be left to specialized code...

Rik.
+-------------------------------------------+--------------------------+
| Linux: - LinuxHQ MM-patches page | Scouting webmaster |
| - kswapd ask-him & complain-to guy | Vries cubscout leader |
| http://www.phys.uu.nl/~riel/ | <H.H.vanRiel@phys.uu.nl> |
+-------------------------------------------+--------------------------+

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu