diff options
author | jhb <jhb@FreeBSD.org> | 2016-01-21 01:25:28 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2016-01-21 01:25:28 +0000 |
commit | 92f20bcad84fee7542f30f239ef80f9ca93567fd (patch) | |
tree | eb32bd0efc71fb0a428ba42b36c4f759f4ec2cd5 /sys/boot/pc98/libpc98/biosdisk.c | |
parent | c599610d3a4c27267fd68b48e2457077aa14eed6 (diff) | |
download | FreeBSD-src-92f20bcad84fee7542f30f239ef80f9ca93567fd.zip FreeBSD-src-92f20bcad84fee7542f30f239ef80f9ca93567fd.tar.gz |
MFC 292682:
Fix remaining direct tests of the carry flag in the v86 %eflags via a
magic number to use V86_CY() instead. These should have been fixed as
part of the cleanup in r226746 but were missed.
The md5 sums of the object files were unchanged, so there should be no
functional change.
PR: 205424
Submitted by: Alexander Kuleshov <kuleshovmail@gmail.com>
Diffstat (limited to 'sys/boot/pc98/libpc98/biosdisk.c')
-rw-r--r-- | sys/boot/pc98/libpc98/biosdisk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/boot/pc98/libpc98/biosdisk.c b/sys/boot/pc98/libpc98/biosdisk.c index 96dbd1f..b777d25 100644 --- a/sys/boot/pc98/libpc98/biosdisk.c +++ b/sys/boot/pc98/libpc98/biosdisk.c @@ -824,7 +824,7 @@ bd_chs_io(struct open_disk *od, daddr_t dblk, int blks, caddr_t dest, int write) v86.es = VTOPSEG(dest); v86.ebp = VTOPOFF(dest); v86int(); - return (v86.efl & 0x1); + return (V86_CY(v86.efl)); } static int @@ -959,7 +959,7 @@ bd_getgeom(struct open_disk *od) od->od_cyl = v86.ecx; od->od_hds = (v86.edx >> 8) & 0xff; od->od_sec = v86.edx & 0xff; - if (v86.efl & 0x1) + if (V86_CY(v86.efl)) return(1); } @@ -1010,7 +1010,7 @@ bd_getbigeom(int bunit) v86.addr = 0x1b; v86.eax = 0x8400 | unit; v86int(); - if (v86.efl & 0x1) + if (V86_CY(v86.efl)) return 0x4F020F; /* 1200KB FD C:80 H:2 S:15 */ return ((v86.ecx & 0xffff) << 16) | (v86.edx & 0xffff); } |