Mail Archives: djgpp/1996/08/18/17:13:24
On 17/8/96 8:59 am, Alaric B. Williams <alaric AT abwillms DOT demon DOT co DOT uk> did thus
say >>>
> "Sam Phillips" <sphillips AT sphillips DOT reno DOT nv DOT us> wrote:
>
> >I was wondering if there was a way to create some code to put into a boot
> >sector, and then after having it is there a painless method to put the code
> >in the bootsector.
>
> This sounds similar to something I was trying... a boostrap written
> with as that loads a 'kernel image' from disk, engages pmode, and
> jumps to it. This kernel image would be constructed from a COFF file.
>
> I looked at how Linux did it, and it used some wierd ld switch I'd
> never seen before, and my DJGPP ld didn't like it.
>
> How do I create a code image, prelocated for a specific base address,
> that can be just loaded and jumped to???
For those who are interrested, I am (off and on) working on that myself. The
boot sector is written using djasm (modified but the mods will be available in
djgpp 2.01) that boots up a djgpp compiled coff image. The only special
requirements of the coff file is no standard io routines (ie stdio, io, unistd
etc are illegal unless you rewrite libc).
If anyone is interrested, I can past them my code. It's mostly complete, just
untested, but very well commented.
Bill
- Raw text -