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 Follow a minor detail in the spec a ...



details:   https://anonhg.NetBSD.org/src/rev/1268e6662ab2
branches:  trunk
changeset: 762431:1268e6662ab2
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sun Feb 20 22:03:13 2011 +0000

description:
Follow a minor detail in the spec a bit more closely.

diffstat:

 sys/arch/i386/stand/lib/biosvbe.S |  12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r 4d0e1e68331f -r 1268e6662ab2 sys/arch/i386/stand/lib/biosvbe.S
--- a/sys/arch/i386/stand/lib/biosvbe.S Sun Feb 20 21:42:50 2011 +0000
+++ b/sys/arch/i386/stand/lib/biosvbe.S Sun Feb 20 22:03:13 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: biosvbe.S,v 1.2 2011/02/09 04:37:54 jmcneill Exp $ */
+/* $NetBSD: biosvbe.S,v 1.3 2011/02/20 22:03:13 jakllsch Exp $ */
 
 /*-
  * Copyright (c) 2009 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -273,14 +273,18 @@
        call    _C_LABEL(prot_to_real)
        .code16
 
+       pushw   %es
+
+       xorw    %di, %di
+       movw    %di, %es        /* es:di == 0:0 */
+
        movw    $0x4f15, %ax    /* display identification extensions */
        mov     $0x00, %bx      /* report DDC capabilities */
-
-       movl    $0x0000, %esi   /* ES:DI == 0:0 */
-       movl    $0x0000, %edi
        mov     $0x00, %cx      /* controller unit number (00h = primary) */
        int     $0x10
 
+       popw    %es
+
        calll   _C_LABEL(real_to_prot)
        .code32
 



Home | Main Index | Thread Index | Old Index