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.
who knows details about grub?
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: who knows details about grub?
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.
GRUB follows the Multiboot specification.
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
[ Project UDI ]
Re: who knows details about grub?
I really have read that specification, and know something.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.
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 ?
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: who knows details about grub?
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 ]
[ Project UDI ]
Re: who knows details about grub?
OK, thanks.Love4Boobies wrote:Read it again - it's right there, you can't miss it.
- Love4Boobies
- Member
- Posts: 2111
- Joined: Fri Mar 07, 2008 5:36 pm
- Location: Bucharest, Romania
Re: who knows details about grub?
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 ]
[ Project UDI ]