who knows details about grub?

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
JohnWaken
Posts: 3
Joined: Fri Oct 02, 2009 7:24 am

who knows details about grub?

Post by JohnWaken »

Hi, everyone!
I am using grub0.97 to load my own kernel.
So I wanna know the status of the cpu after grub executes.

What's the value of eax, ebx, ecx, edx, esi, edi, esp and ebp ?
What's the value of cs, ds, ss, es, gs and fs ?
And the content of gdt and idt ?

The most important, where grub load my kernerl, namely, what's the physical address of my own kernel ?

anybody can throw light upon things above ? thanks.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: who knows details about grub?

Post by Love4Boobies »

Do your homework before asking questions like these. Not to mention that you don't boot your kenrel using GRUB as you claim if you can't answer that yourself.

GRUB follows the Multiboot specification.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
JohnWaken
Posts: 3
Joined: Fri Oct 02, 2009 7:24 am

Re: who knows details about grub?

Post by JohnWaken »

Love4Boobies wrote:Do your homework before asking questions like these. Not to mention that you don't boot your kenrel using GRUB as you claim if you can't answer that yourself.

GRUB follows the Multiboot specification.
I really have read that specification, and know something.
Sorry, maybe I asked too much.
What I want to make sure is the physical address of the kernel.
It's decided by GRUB or by ld script ?
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: who knows details about grub?

Post by Love4Boobies »

Read it again - it's right there, you can't miss it.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
JohnWaken
Posts: 3
Joined: Fri Oct 02, 2009 7:24 am

Re: who knows details about grub?

Post by JohnWaken »

Love4Boobies wrote:Read it again - it's right there, you can't miss it.
OK, thanks.
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: who knows details about grub?

Post by Love4Boobies »

Good, I trust you've found the answer - you decide what the physical address at which to boot loader should load the kernel is by either putting it down in the header of the executable image (which the boot loader must be able to interpret) - this is indeed a decision made at linking, or by passing it in the address fields of the Multiboot header.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
Post Reply