[syslinux] isohybrid.c: memcpy(mbr, &isohdpfx[hd0 + 3 * partok], MBRSIZE);

Geert Stappers stappers at stappers.nl
Mon May 3 07:16:21 PDT 2010


Op 20100503 om 15:33 schreef Geert Stappers:
> > +int
> > +initialise_mbr(uint8_t *mbr)
> > +{
> > +    int i = 0;
> > +    uint32_t psize = 0, tmp = 0;
> > +    uint8_t ptype = 0, *rbm = mbr;
> > +    uint8_t bhead = 0, bsect = 0, bcyle = 0;
> > +    uint8_t ehead = 0, esect = 0, ecyle = 0;
> > +
> > +    extern unsigned char isohdpfx[][MBRSIZE];
> > +
> > +    memcpy(mbr, &isohdpfx[hd0 + 3 * partok], MBRSIZE);
> 
> That line, to which line does it match with in the original Perl script?
>

209 for ($i = 0; $i <= $opt{'hd0'}+3*$opt{'partok'}; $i++) {
210     $mbr = get_hex_data();
211 }






More information about the Syslinux mailing list