diff options
author | bde <bde@FreeBSD.org> | 1995-02-16 15:06:09 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1995-02-16 15:06:09 +0000 |
commit | 83aff90f5e42f9f2a8cd80d917f144fa72f1d937 (patch) | |
tree | 222fc46635d48d8d702790f9481e92e1414c8410 /sys | |
parent | 8abfaf1d18588e52a635ffe04eaa7235584d88df (diff) | |
download | FreeBSD-src-83aff90f5e42f9f2a8cd80d917f144fa72f1d937.zip FreeBSD-src-83aff90f5e42f9f2a8cd80d917f144fa72f1d937.tar.gz |
Adjust for rearranged slice numbers.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/i386/boot/biosboot/disk.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/i386/boot/biosboot/disk.c b/sys/i386/boot/biosboot/disk.c index 0cc0b54..e1fcfd2 100644 --- a/sys/i386/boot/biosboot/disk.c +++ b/sys/i386/boot/biosboot/disk.c @@ -24,7 +24,7 @@ * the rights to redistribute these changes. * * from: Mach, Revision 2.2 92/04/04 11:35:49 rpd - * $Id: disk.c,v 1.6 1994/12/18 19:14:19 bde Exp $ + * $Id: disk.c,v 1.7 1995/01/25 21:37:41 bde Exp $ */ /* @@ -42,6 +42,7 @@ #include <sys/dkbad.h> #endif DO_BAD144 #include <sys/disklabel.h> +#include <sys/diskslice.h> #define BIOS_DEV_FLOPPY 0x0 #define BIOS_DEV_WIN 0x80 @@ -89,9 +90,10 @@ devopen() Bread(dosdev, 0); dptr = (struct dos_partition *)(((char *)0)+DOSPARTOFF); sector = LABELSECTOR; + slice = WHOLE_DISK_SLICE; for (i = 0; i < NDOSPART; i++, dptr++) if (dptr->dp_typ == DOSPTYP_386BSD) { - slice = 1 + i; + slice = BASE_SLICE + i; sector = dptr->dp_start + LABELSECTOR; break; } |