Skip to content

Commit

Permalink
pdiskio.c: work around Xi8088 and Book8088 BIOS bug
Browse files Browse the repository at this point in the history
  • Loading branch information
boeckmann committed May 11, 2024
1 parent 57512e7 commit 8126a21
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/fdisk/pdiskio.c
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ void Check_For_INT13_Extensions( void )
r.h.ah = 0x41;
r.w.bx = 0x55aa;
r.h.dl = drive;
r.w.ds = 0x40; /* temporarly point to BDA to work around
Xi8088 and Book8088 BIOS bug, see
https://github.com/FDOS/kernel/issues/156 */
intr( 0x13, &r );

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

0 comments on commit 8126a21

Please sign in to comment.