--- src/sys/boot/pc32/boot2/boot2.c 2007/06/17 23:50:15 1.15 +++ src/sys/boot/pc32/boot2/boot2.c 2007/06/18 05:13:42 1.16 @@ -48,7 +48,7 @@ * $DragonFly$ */ #include -#include +#include #include #include #include @@ -517,7 +517,7 @@ static int dskread(void *buf, unsigned lba, unsigned nblk) { struct dos_partition *dp; - struct disklabel *d; + struct disklabel32 *d; char *sec; unsigned sl, i; @@ -549,10 +549,10 @@ dskread(void *buf, unsigned lba, unsigne } dsk.start = dp->dp_start; } - if (drvread(sec, dsk.start + LABELSECTOR, 1)) + if (drvread(sec, dsk.start + LABELSECTOR32, 1)) return -1; - d = (void *)(sec + LABELOFFSET); - if (d->d_magic != DISKMAGIC || d->d_magic2 != DISKMAGIC) { + d = (void *)(sec + LABELOFFSET32); + if (d->d_magic != DISKMAGIC32 || d->d_magic2 != DISKMAGIC32) { if (dsk.part != RAW_PART) { printf(INVALID_S, "label"); return -1;