February 2, 2006

Bootstrap seems to work :-D

Hello there!

No, I did not made the 64-bit AROS working natively. Not yet... Instead I was working on 32-bit bootstrap code.

Since the BIOS of x86_64 PCs boots into 16-bit mode and GRUB switches from 16-bit mode into 32-bit one, the new kernel for AROS should be a 32-bit ELF executable. Therefore, the idea of bootstrap was born.

The bootstrap is a small 32-bit application which is loaded by GRUB. It is responsible for setting an environment for 64-bit system up, like the descriptors and MMU page tables. It contains also an ELF-relocator, which is used to load embedded 64-bit ELF image of kernel into arbitrary memory location. The same relocator is used to link any additional modules loaded by GRUB with the kernel.

And you know what?... The bootstrap works already :-D

It's not an achivement worth mentioning (the binary of bootstrap is less than 12KB), but I felt that I have to share my hapiness with you.

5 Comments:

Anonymous opi said...

You rule, and you know that. :-D

5:31 PM  
Blogger Ronald said...

Happyness shared.

Good job! :D

9:21 PM  
Anonymous Ben Farrell said...

Well done.

I was wondering if you help me. I am attempting to get from protect mode (from grub) to long mode. And I am having some problems when I enable page.

Is there any chance that I can view your bootstrap source code ?

11:15 PM  
Blogger Michal Schulz said...

The source code is in aros nightly (arch/x86_64/bootstrap). Please visit www.aros.org to see details

4:50 PM  
Blogger dotty said...

You rule, and you know that.

...........
Padmi

Wow, check out this site called www.fluc.combr/>. Free SMS and free mobile ads!! Its fantastic

12:32 PM  

Post a Comment

<< Home