Mail Archives: djgpp/1998/11/03/23:38:26
Jeramie Hicks wrote:
>
> I'm toying around with writing a barebones OS (initially being able to
> boot and walk around a hard drive only). I'd like to use DJGPP to
> write the command interpreter, but I'm not sure which DOS interrupt
> handlers I need to write. What interrupts does a DPMI provider or the
> DJGPP stub need initially provided to function properly? I mean, I can
> figure out what DOS functions my own code needs, but what about the
> stub and DPMI program?
The DPMI spec can be found here:
http://www.delorie.com/djgpp/doc/dpmi/
This explains the DPMI calls that exist. Each corresponds to one of the
`__dpmi*' functions. You can look at the DJGPP source code to find out
which ones are called (you'll probably need most of the v0.9 calls).
But having DPMI in your kernel will be rather a difficult thing to do
right off. You might want to write some cheesy little shell in Turbo-C,
or better, assembly, first.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -