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 Shifting ecx without explicit prefix...



details:   https://anonhg.NetBSD.org/src/rev/2850813f1ad8
branches:  trunk
changeset: 467905:2850813f1ad8
user:      fvdl <fvdl%NetBSD.org@localhost>
date:      Tue Mar 30 22:35:21 1999 +0000

description:
Shifting ecx without explicit prefix in real mode won't work.

diffstat:

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

diffs (27 lines):

diff -r 5c558fa63c19 -r 2850813f1ad8 sys/arch/i386/stand/lib/bios_disk.S
--- a/sys/arch/i386/stand/lib/bios_disk.S       Tue Mar 30 22:03:47 1999 +0000
+++ b/sys/arch/i386/stand/lib/bios_disk.S       Tue Mar 30 22:35:21 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bios_disk.S,v 1.6 1999/03/30 17:55:48 drochner Exp $   */
+/*     $NetBSD: bios_disk.S,v 1.7 1999/03/30 22:35:21 fvdl Exp $       */
 
 /*
  * Ported to boot 386BSD by Julian Elischer (julian%tfs.com@localhost) Sept 1992
@@ -153,14 +153,13 @@
        # carry = 0
 
 ok:
+       data32
+       call    _C_LABEL(real_to_prot)  # back to protected mode
+
        /* form a longword representing all this gunk */
        shll    $8, %ecx
        movb    %dh, %cl
 
-       data32
-       call    _C_LABEL(real_to_prot)  # back to protected mode
-
-       data32
        movl    %ecx, %eax
 
        pop     %edi



Home | Main Index | Thread Index | Old Index