On 02/10/2011 03:52 PM, Baisheng Wang wrote:
>
> Let me clarify again.
>
> In grub-1.98/loader/i386/linux.c, for the code lines:
>
> "grub_file_seek (file, real_size + GRUB_DISK_SECTOR_SIZE);"
>
> and
>
> "prot_size = grub_file_size (file) - real_size - GRUB_DISK_SECTOR_SIZE;"
>
> I want to know why there is another sector, I mean GRUB_DISK_SECTOR_SIZE ?
>
Trivial, Watson. first sector contains the part which is launched only
when dd'ing to floppy, not with a propoer bootloader. Actually recent
kernels just contain a stub instruction to use a bootloader
> Thanks,
> Baisheng
>
>
> 2011/2/10 Baisheng Wang <baisheng.wang.cn
> <http://baisheng.wang.cn>@gmail.com <http://gmail.com>>
>
>     Dear all:
>
>     In the file grub-1.98/loader/i386/linux.c, for the variable
>     prot_size, why subtract GRUB_DISK_SECTOR_SIZE ?
>
>     Thanks & Regards,
>     Baisheng
>
>
>
> _______________________________________________
> Grub-devel mailing list
> [email protected]
> http://lists.gnu.org/mailman/listinfo/grub-devel
>   


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to