OSDev.org

The Place to Start for Operating System Developers
It is currently Fri Apr 19, 2024 2:36 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: loading kernel...
PostPosted: Sun Aug 12, 2001 11:00 pm 
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


Top
  
 
 Post subject: RE:loading kernel...
PostPosted: Mon Aug 13, 2001 11:00 pm 
>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.


Top
  
 
 Post subject: RE:loading kernel...
PostPosted: Tue Aug 14, 2001 11:00 pm 
>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.


Top
  
 
 Post subject: RE:loading kernel...
PostPosted: Thu Sep 20, 2001 11:00 pm 
Offline
Member
Member
User avatar

Joined: Fri Oct 22, 2004 11:00 pm
Posts: 1076
>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 --


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 107 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group