Load kernel at 1 MB + 64 KB

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
jason7007

Load kernel at 1 MB + 64 KB

Post by jason7007 »

Hello,

A year ago , I downloaded a tutorial regarding on "How to load a kernel at 1 mb + 64 kb extended memory". I badly needed now, but I lost the file and could not find it in Google.

Can someone give me the link so I can download it?

I would appreciate it very much!
User avatar
Pype.Clicker
Member
Member
Posts: 5964
Joined: Wed Oct 18, 2006 2:31 am
Location: In a galaxy, far, far away
Contact:

Re:LOAD KERNEL AT 1 MB + 64 KB

Post by Pype.Clicker »

well, you can use unreal mode, as stated in faq

or just switch to GRUB (i'll have to do that too, and believe me, i now wish i did it earlier)
User avatar
Candy
Member
Member
Posts: 3882
Joined: Tue Oct 17, 2006 11:33 pm
Location: Eindhoven

Re:Load kernel at 1 MB + 64 KB

Post by Candy »

Don't shout in your topic title.
xsix

Re:Load kernel at 1 MB + 64 KB

Post by xsix »

Loading kernel above 1mb is quite easy, just load kernel below 1mb, then run into protected mode and copy all loaded kernel above 1mb, and jump to it.
pradeep

Re:Load kernel at 1 MB + 64 KB

Post by pradeep »

Then you sure need GDT for kernel below 1mb and for above 1mb. If suppose you want to make BIOS calls what will you do? You come back to kernel below 1 mb and make BIOS calls then return back to kernel above 1mb. In mean time you might somehow override the kernel below 1mb. You might not no where you have overwritten and debugging will take a lot of time.
So my advice is to do all the things you needed in Real mode itself. Don't jump to protected mode at the beginning itself. Be sure about your design( whether you are going back to real mode? like that). Giese's material will be quite useful on pmode.

My advice is to use GRUB. However is you want to understand a lot, try the hard way.
Post Reply