Mail Archives: djgpp/1998/06/13/01:16:34
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 |
> \----------------------------
- Raw text -