I need information about I can load the kernel
after my os swtichs to PMode and i set up the GDT
in the bootstrap process...i'd like to have
a .c file, to compile it as a plan binary and
put it after the byte 512 in the floppy disk but
i was wondering how to do this and if this was
possible...
Thanks
loading kernel...
RE:loading kernel...
>On 2001-08-13 18:26:04, RamboII wrote:
>I need information about I can load the kernel
>after my os swtichs to PMode and i set up the GDT
>in the bootstrap process...i'd like to have
>a .c file, to compile it as a plan binary and
>put it after the byte 512 in the floppy disk but
>i was wondering how to do this and if this was
>possible...
>Thanks
Check out the 'Mixing C and Assembly' section under the Developer Guides
at this site. Also, check out John Fine's pages.
>I need information about I can load the kernel
>after my os swtichs to PMode and i set up the GDT
>in the bootstrap process...i'd like to have
>a .c file, to compile it as a plan binary and
>put it after the byte 512 in the floppy disk but
>i was wondering how to do this and if this was
>possible...
>Thanks
Check out the 'Mixing C and Assembly' section under the Developer Guides
at this site. Also, check out John Fine's pages.
RE:loading kernel...
>On 2001-08-13 18:26:04, RamboII wrote:
>I need information about I can load the kernel
>after my os swtichs to PMode and i set up the GDT
It the "after" that really is the problem.
Typical thing to do is switch back and forth between
real and Pmode to load the kernel, because your kernel
might be larger then 640k and mutiple disk reads using
real mode BIOS services would be needed.
I heard of some people using unreal mode but never looked
into it myself.
>I need information about I can load the kernel
>after my os swtichs to PMode and i set up the GDT
It the "after" that really is the problem.
Typical thing to do is switch back and forth between
real and Pmode to load the kernel, because your kernel
might be larger then 640k and mutiple disk reads using
real mode BIOS services would be needed.
I heard of some people using unreal mode but never looked
into it myself.
RE:loading kernel...
>On 2001-08-13 18:26:04, RamboII wrote:
>I need information about I can load the kernel
>after my os swtichs to PMode and i set up the GDT
>in the bootstrap process...i'd like to have
>a .c file, to compile it as a plan binary and
>put it after the byte 512 in the floppy disk but
>i was wondering how to do this and if this was
>possible...
use grub to load your kernel. all problems solved.
grub is a bootloader, it sets pmode, determins memory, etc
and loads your kernel for you, meaning you dont have to do
pmode switches, etc. and really low level stuff like
that.
>I need information about I can load the kernel
>after my os swtichs to PMode and i set up the GDT
>in the bootstrap process...i'd like to have
>a .c file, to compile it as a plan binary and
>put it after the byte 512 in the floppy disk but
>i was wondering how to do this and if this was
>possible...
use grub to load your kernel. all problems solved.
grub is a bootloader, it sets pmode, determins memory, etc
and loads your kernel for you, meaning you dont have to do
pmode switches, etc. and really low level stuff like
that.
-- Stu --