summaryrefslogtreecommitdiffstats
path: root/sys/i386/boot/biosboot/disk.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/i386/boot/biosboot/disk.c')
-rw-r--r--sys/i386/boot/biosboot/disk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/i386/boot/biosboot/disk.c b/sys/i386/boot/biosboot/disk.c
index a63ca5a..5669262 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.4 1994/02/22 22:59:40 rgrimes Exp $
+ * $Id: disk.c,v 1.5 1994/05/16 03:06:00 ache Exp $
*/
/*
@@ -63,7 +63,7 @@ int spt, spc;
char *iodest;
struct fs *fs;
struct inode inode;
-int dosdev, unit, part, maj, boff, poff, bnum, cnt;
+int dosdev, unit, slice, part, maj, boff, poff, bnum, cnt;
/*#define EMBEDDED_DISKLABEL 1*/
extern struct disklabel disklabel;
@@ -93,6 +93,7 @@ devopen()
sector = LABELSECTOR;
for (i = 0; i < NDOSPART; i++, dptr++)
if (dptr->dp_typ == DOSPTYP_386BSD) {
+ slice = 1 + i;
sector = dptr->dp_start + LABELSECTOR;
break;
}
OpenPOWER on IntegriCloud