From: acottrel AT magna DOT com DOT au (Andrew Cottrell) Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP for OS development? Date: Sat, 13 Jun 1998 03:57:56 GMT Organization: Magna Data - Internet Solutions Provider Lines: 34 Message-ID: <3582f8a0.4236465@news.magna.com.au> References: <6ls6mi$i7f$1 AT News DOT Dal DOT Ca> Reply-To: acottrel AT spam DOT magna DOT com DOT au NNTP-Posting-Host: saccess-03-043.magna.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Check out KERNEL2.ZIP by Bill Currie, it may be usefull as a starting point. Andrew On 12 Jun 1998 21:30:58 GMT, aa627 AT chebucto DOT ns DOT ca (Greg McLearn) wrote: > Hello, I am into the first stage of coding of my OS I am creating. >I have hit a small problem (one of many to be, I'm sure.) I would like to >use the DJGPP C compiler and Assembler to code my OS since it can emit >32-bit instructions. Now the small snag is that DJGPP sets up its own >protected mode environment thru the use of the DPMI server. Since I will >not be using a DPMI server outside of DOS (ie. in the realm of the new >OS), I am wondering if it is possible to link in new startup code onto >each compiled file? I know that this can be done with such tools as >Borland C/C++, but all I have is a 16-bit version of this. > Can I compile my protected mode init. code as a .O file and link >it as the startup code? Do other .O files contain calls to the DPMI >functions? What about calls to printf or the like? Do they make calls to >other functions which eventually call DPMI functions (or selectors that >may or may not be the same as what I have selected for my OS?) I'm sure >that this has been done before. Can anyone point me in the right >direction (web-sites, FAQs, etc), or offer some advice? > >Thanks very much! > ____ > |C:\>| ____________________________ > |____| //~\ | Greg McLearn | > _|__|_ ______/P//_ |\/| Nova Scotia, Canada | > |oo ===| |[*] EPSON | \ | aa627 AT chebucto DOT ns DOT ca OR | > |______|~~~~ ----------- \| G_MCLEAR AT bass DOT stmarys DOT ca | > \----------------------------