1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-02 08:42:48 +00:00

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

This commit is contained in:
Yoshihiro Takahashi 2009-03-19 12:33:37 +00:00
parent 162784c969
commit 1214222676
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=190029

View File

@ -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;