From: Pavel Roskin <[EMAIL PROTECTED]>
Subject: fd7 ?
Date: Tue, 27 Jul 1999 13:58:19 +0400 (EEST)

> Apprarently, get_diskinfo_standard (INT 13 AH=8h) returns success for
> every drive (Intel 440ZX, Award BIOS)

  Can you test this patch?

--- asm.S~      Fri Jul 30 01:33:58 1999
+++ asm.S       Fri Jul 30 01:38:17 1999
@@ -596,6 +596,13 @@
        .code16
        movb    $0x8, %ah
        int     $0x13           /* do the operation */
+       jnc     1f              /* if non-carrier, then succeed */
+       /* bogus BIOSes may not return an error number */
+       testb   %ah, %ah
+       jnz     1f
+       /* XXX 0x60 is one of the unused error numbers */
+       movb    0x60, %ah
+1:     
        movb    %ah, %bl        /* save return value in %bl */
        /* back to protected mode */
        data32


----------------------------------------------------------------------
OKUJI Yoshinori  <[EMAIL PROTECTED]>           ^o-o^
http://duff.kuicr.kyoto-u.ac.jp/~okuji (in English)     m /

Reply via email to