svn commit: r190029 - head/sys/boot/pc98/libpc98

Takahashi Yoshihiro nyan at FreeBSD.org
Thu Mar 19 05:33:38 PDT 2009


Author: nyan
Date: Thu Mar 19 12:33:37 2009
New Revision: 190029
URL: http://svn.freebsd.org/changeset/base/190029

Log:
  Use the common PC98_MID_* defines instead of a magic number.

Modified:
  head/sys/boot/pc98/libpc98/biosdisk.c

Modified: head/sys/boot/pc98/libpc98/biosdisk.c
==============================================================================
--- head/sys/boot/pc98/libpc98/biosdisk.c	Thu Mar 19 12:32:13 2009	(r190028)
+++ head/sys/boot/pc98/libpc98/biosdisk.c	Thu Mar 19 12:33:37 2009	(r190029)
@@ -625,9 +625,9 @@ bd_bestslice(struct open_disk *od)
 
 	dp = &od->od_slicetab[0];
 	for (i = 0; i < od->od_nslices; i++, dp++) {
-		switch(dp->dp_mid & 0x7f) {
-		case DOSMID_386BSD & 0x7f:		/* FreeBSD */
-			if ((dp->dp_mid & 0x80) &&
+		switch(dp->dp_mid & PC98_MID_MASK) {
+		case PC98_MID_386BSD:		/* FreeBSD */
+			if ((dp->dp_mid & PC98_MID_BOOTABLE) &&
 			    (preflevel > PREF_FBSD_ACT)) {
 				pref = i;
 				preflevel = PREF_FBSD_ACT;
@@ -643,7 +643,7 @@ bd_bestslice(struct open_disk *od)
 		case 0x22:
 		case 0x23:
 		case 0x63:
-			if ((dp->dp_mid & 0x80) &&
+			if ((dp->dp_mid & PC98_MID_BOOTABLE) &&
 			    (preflevel > PREF_DOS_ACT)) {
 				pref = i;
 				preflevel = PREF_DOS_ACT;


More information about the svn-src-all mailing list