Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/lib Actually return the BIOS error code ...



details:   https://anonhg.NetBSD.org/src/rev/07e4c0861790
branches:  trunk
changeset: 486415:07e4c0861790
user:      perry <perry%NetBSD.org@localhost>
date:      Sun May 21 16:59:28 2000 +0000

description:
Actually return the BIOS error code (if any) generated by the reads

diffstat:

 sys/arch/i386/stand/lib/bios_disk.S |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (40 lines):

diff -r 4ee657fbb8ce -r 07e4c0861790 sys/arch/i386/stand/lib/bios_disk.S
--- a/sys/arch/i386/stand/lib/bios_disk.S       Sun May 21 16:33:12 2000 +0000
+++ b/sys/arch/i386/stand/lib/bios_disk.S       Sun May 21 16:59:28 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bios_disk.S,v 1.7 1999/03/30 22:35:21 fvdl Exp $       */
+/*     $NetBSD: bios_disk.S,v 1.8 2000/05/21 16:59:28 perry Exp $      */
 
 /*
  * Ported to boot 386BSD by Julian Elischer (julian%tfs.com@localhost) Sept 1992
@@ -97,12 +97,13 @@
        movb    24(%ebp), %al   # number of sectors
        int     $0x13
        setc    %bl
-
+       movb    %ah, %bh        # save error code
+       
        data32
        call    _C_LABEL(real_to_prot) # back to protected mode
 
        xorl    %eax, %eax
-       movb    %bl, %al        # return value in %ax
+       movw    %bx, %ax        # return value in %ax
 
        pop     %edi
        pop     %esi
@@ -238,12 +239,13 @@
        movb    $0x42, %ah      # subfunction
        int     $0x13
        setc    %bl
+       movb    %ah, %bh        # save error code
 
        data32
        call    _C_LABEL(real_to_prot) # back to protected mode
 
        xorl    %eax, %eax
-       movb    %bl, %al        # return value in %ax
+       movw    %bx, %ax        # return value in %ax
 
        pop     %edi
        pop     %esi



Home | Main Index | Thread Index | Old Index