Sender: nate AT cartsys DOT com Message-ID: <363FD971.AAF8BD9A@cartsys.com> Date: Tue, 03 Nov 1998 20:34:57 -0800 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: djgpp AT delorie DOT com Subject: Re: DJGPP-written OS References: <363e3b5e DOT 180409204 AT newshost DOT cc DOT utexas DOT edu> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com 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