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 Shorten slightly



details:   https://anonhg.NetBSD.org/src/rev/b723cffe0edc
branches:  trunk
changeset: 749161:b723cffe0edc
user:      dsl <dsl%NetBSD.org@localhost>
date:      Thu Nov 19 22:08:14 2009 +0000

description:
Shorten slightly

diffstat:

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

diffs (33 lines):

diff -r f334bb02efe5 -r b723cffe0edc sys/arch/i386/stand/lib/dump_eax.S
--- a/sys/arch/i386/stand/lib/dump_eax.S        Thu Nov 19 21:56:00 2009 +0000
+++ b/sys/arch/i386/stand/lib/dump_eax.S        Thu Nov 19 22:08:14 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: dump_eax.S,v 1.3 2009/02/11 07:24:40 jnemeth Exp $     */
+/*     $NetBSD: dump_eax.S,v 1.4 2009/11/19 22:08:14 dsl Exp $ */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -39,9 +39,6 @@
 ENTRY(dump_eax)
        .code16
        pusha                                   /* saves bottom 16 bits only! */
-       push    %es                             /* allow for %es != %ds */
-       push    %ds
-       pop     %es
        movw    $dump_eax_buff, %si
        mov     %si, %di
        movw    $8, %cx
@@ -54,10 +51,9 @@
        addb    $0xc0, %al                      /* f0..f9, 00..05 */
        adcb    $0x40, %al                      /* 30..39, 41..46 */
 #endif
-       stosb
+       mov     %al,(%di)
+       inc     %di
        pop     %ax
        loop    1b
-       movw    $0x20, %ax                      /* space + null */
-       stosw
-       pop     %es
+       movw    $0x20,(%di)                     /* space + NIL */
        jmp     message_1



Home | Main Index | Thread Index | Old Index