Skip to content

Commit 8126a21

Browse files
committed
pdiskio.c: work around Xi8088 and Book8088 BIOS bug
1 parent 57512e7 commit 8126a21

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

source/fdisk/pdiskio.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,9 @@ void Check_For_INT13_Extensions( void )
116116
r.h.ah = 0x41;
117117
r.w.bx = 0x55aa;
118118
r.h.dl = drive;
119+
r.w.ds = 0x40; /* temporarly point to BDA to work around
120+
Xi8088 and Book8088 BIOS bug, see
121+
https://github.com/FDOS/kernel/issues/156 */
119122
intr( 0x13, &r );
120123

121124
if ( ( ( r.w.flags & INTR_CF ) == 0 ) && ( r.w.bx == 0xaa55 ) ) {

0 commit comments

Comments
 (0)