Mail Archives: djgpp/1997/01/31/18:25:31
In article <5cphom$73u$9 AT celebrian DOT otago DOT ac DOT nz>, kurt AT deepsouth DOT co DOT nz says...
>
>In article <32EA9DBA DOT AF0 AT cam DOT org>
>Tudor <tudor AT cam DOT org> writes:
>
>> I'm really interested and curious about OS developing.I'd like to do
>> stuff like this as a hobby.But I have no ideea about the basics of OS
>> developing.ie. how to create software interupts and so.
>> Are there any tutorials I could read? How can I find out more about
>> this?
>
>Now, I think that executables created with djgpp require a DPMI server
>and this DPMI server requires MS-DOS or similar. So how do we write a
>simple, 32 bit executable that doesn't make calls to DPMI functions.
>Because that is what is needed to write an OS?, Right?
>
>Thanks
>
>Kurt Confused Hausler
That's actually quite easy. I hopped onto the OS-writing bandwagon two weeks
ago, once I realized that DJGPP is a very nice development platform.
How to do it? quite simple actually. I downloaded Bill Currie's boot loader
(unfortunately I can't remember where from, but I think I got the address from
this list, so it should be in the searchable archive at delorie.com). This
has a makefile that invokes the linker directly so all the standard libraries
(these are the bits that need DOS) are ignored. Of course, this means that
you'll have to write EVERYTHING yourself. But then again, you *are* writing an
OS, right? :) Beware though, the program copyboot has a bug in it, namely the
biosdisk() call has two parameters switched around. It doesn't show up with
the teeny demo program, but it had me tearing out my hair when triple faults
kept on resetting my system, seemingly at random...
Oh, in case it matters, I'm using DJGPP 2.01.
Cheers
Fabian
--
Fabian Nunez, B.Sc(Hons) mailto:faybs AT iafrica DOT com
Freelance Coder http://127.0.0.1/dev/null
The book where percussion meets psychology: "Man And His Cymbals"
- Raw text -