OpenSolaris邮件列表中关于x86引导程序的讨论

发表于:2007-06-08来源:作者:点击数: 标签:
转载自: OpenSolaris: code 可以看出,Solaris的x86新版本已经使用grub做引导了。 Hi, Can anyone please tell me where i can find the X86 specific code and ialso i would like to know where the code for the bootsector is presentand how the kerne
转载自:OpenSolaris: code

可以看出,Solaris的x86新版本已经使用grub做引导了。


Hi,
Can anyone please tell me where i can find the X86 specific code and i also i would like to know where the code for the bootsector is present and how the kernel is getting loaded during bootup.I am looking at X86 specific and not sparc.
Thanks
Jay


Hello,

The easiest way to go, I think, is to begin with the following ones:
/usr/src/grub/grub-0.95/stage1/stage1.S
/usr/src/grub/grub-0.95/stage2/start.S
/usr/src/grub/grub-0.95/stage2/asm.S
/usr/src/grub/grub-0.95/stage2/common.c
/usr/src/grub/grub-0.95/stage2/builtins.c

and then go to:
/usr/src/psm/stand/boot/i386/i86pc/asm.s
/usr/src/psm/stand/boot/i386/common/multiboot.c

Hope that it will help you.

J-F

jfndi     



Sorry,

I forgot to mention one of the most important:

/usr/src/uts/i86pc/os/startup.c

Regards,

J-F


原文转自:http://www.ltesting.net