Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/i386 Line 281-304:



details:   https://anonhg.NetBSD.org/src/rev/9c2915c6eac8
branches:  trunk
changeset: 533834:9c2915c6eac8
user:      kent <kent%NetBSD.org@localhost>
date:      Wed Jul 10 05:56:44 2002 +0000

description:
Line 281-304:
 Use %edi instead of %edx to keep destination address because memcpy() MAY
break %edx.

diffstat:

 sys/arch/i386/i386/locore.s |  18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diffs (46 lines):

diff -r a313239c207d -r 9c2915c6eac8 sys/arch/i386/i386/locore.s
--- a/sys/arch/i386/i386/locore.s       Wed Jul 10 05:25:12 2002 +0000
+++ b/sys/arch/i386/i386/locore.s       Wed Jul 10 05:56:44 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.256 2002/06/23 22:18:50 thorpej Exp $     */
+/*     $NetBSD: locore.s,v 1.257 2002/07/10 05:56:44 kent Exp $        */
 
 /*-
  * Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -278,9 +278,9 @@
        testl   %eax, %eax
        jz      1f
        movl    (%eax), %ebx            /* number of entries */
-       movl    $RELOC(bootinfo), %edx
-       movl    %ebx, (%edx)
-       addl    $4, %edx
+       movl    $RELOC(bootinfo), %edi
+       movl    %ebx, (%edi)
+       addl    $4, %edi
 2:
        testl   %ebx, %ebx
        jz      1f
@@ -289,9 +289,9 @@
        pushl   %eax
        pushl   (%ecx)                  /* len */
        pushl   %ecx
-       pushl   %edx
-       addl    (%ecx), %edx            /* update dest pointer */
-       cmpl    $_RELOC(_C_LABEL(bootinfo) + BOOTINFO_MAXSIZE), %edx
+       pushl   %edi
+       addl    (%ecx), %edi            /* update dest pointer */
+       cmpl    $_RELOC(_C_LABEL(bootinfo) + BOOTINFO_MAXSIZE), %edi
        jg      2f
        call    _C_LABEL(memcpy)
        addl    $12, %esp
@@ -300,8 +300,8 @@
        jmp     2b
 2:     /* cleanup for overflow case */
        addl    $16, %esp
-       movl    $RELOC(bootinfo), %edx
-       subl    %ebx, (%edx)            /* correct number of entries */
+       movl    $RELOC(bootinfo), %edi
+       subl    %ebx, (%edi)            /* correct number of entries */
 1:
 
        movl    16(%esp),%eax



Home | Main Index | Thread Index | Old Index