svn commit: r190260 - in stable/7/sys: . boot/pc98/libpc98 contrib/pf dev/ath/ath_hal dev/cxgb

Takahashi Yoshihiro nyan at FreeBSD.org
Sun Mar 22 03:55:08 PDT 2009


Author: nyan
Date: Sun Mar 22 10:55:07 2009
New Revision: 190260
URL: http://svn.freebsd.org/changeset/base/190260

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

Modified:
  stable/7/sys/   (props changed)
  stable/7/sys/boot/pc98/libpc98/biosdisk.c
  stable/7/sys/contrib/pf/   (props changed)
  stable/7/sys/dev/ath/ath_hal/   (props changed)
  stable/7/sys/dev/cxgb/   (props changed)

Modified: stable/7/sys/boot/pc98/libpc98/biosdisk.c
==============================================================================
--- stable/7/sys/boot/pc98/libpc98/biosdisk.c	Sun Mar 22 10:51:40 2009	(r190259)
+++ stable/7/sys/boot/pc98/libpc98/biosdisk.c	Sun Mar 22 10:55:07 2009	(r190260)
@@ -602,9 +602,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;
@@ -620,7 +620,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