loading kernel...

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
RamboII

loading kernel...

Post by RamboII »

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
Hillbillie

RE:loading kernel...

Post by Hillbillie »

>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.
Chase

RE:loading kernel...

Post by Chase »

>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.
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

RE:loading kernel...

Post by df »

>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.
-- Stu --
Post Reply