diff options
author | nyan <nyan@FreeBSD.org> | 2009-03-19 12:33:37 +0000 |
---|---|---|
committer | nyan <nyan@FreeBSD.org> | 2009-03-19 12:33:37 +0000 |
commit | dab5ff8a73e33d4fccfac1d2ef7c21f4927bf603 (patch) | |
tree | 9cbe6139374bf6f9e32a40c3368e37950e32f87d /sys | |
parent | d5c5250d6a9ad48fe677b31dbb321470dcbcc636 (diff) | |
download | FreeBSD-src-dab5ff8a73e33d4fccfac1d2ef7c21f4927bf603.zip FreeBSD-src-dab5ff8a73e33d4fccfac1d2ef7c21f4927bf603.tar.gz |
Use the common PC98_MID_* defines instead of a magic number.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/boot/pc98/libpc98/biosdisk.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/boot/pc98/libpc98/biosdisk.c b/sys/boot/pc98/libpc98/biosdisk.c index dc5f82d..65a06d4 100644 --- a/sys/boot/pc98/libpc98/biosdisk.c +++ b/sys/boot/pc98/libpc98/biosdisk.c @@ -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; |