Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc/sparc use memset() instead of bzero()



details:   https://anonhg.NetBSD.org/src/rev/14ee7a0ee6e1
branches:  trunk
changeset: 555080:14ee7a0ee6e1
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Nov 08 07:39:18 2003 +0000

description:
use memset() instead of bzero()

diffstat:

 sys/arch/sparc/sparc/locore.s |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (23 lines):

diff -r 10985b013e0a -r 14ee7a0ee6e1 sys/arch/sparc/sparc/locore.s
--- a/sys/arch/sparc/sparc/locore.s     Sat Nov 08 07:24:46 2003 +0000
+++ b/sys/arch/sparc/sparc/locore.s     Sat Nov 08 07:39:18 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: locore.s,v 1.191 2003/11/07 14:54:29 pk Exp $  */
+/*     $NetBSD: locore.s,v 1.192 2003/11/08 07:39:18 jdolecek Exp $    */
 
 /*
  * Copyright (c) 1996 Paul Kranenburg
@@ -4113,9 +4113,10 @@
 
 
        /* Clear `cpuinfo' */
-       sethi   %hi(CPUINFO_VA), %o0            ! bzero(&cpuinfo, NBPG)
-       sethi   %hi(CPUINFO_STRUCTSIZE), %o1
-       call    _C_LABEL(bzero)
+       sethi   %hi(CPUINFO_VA), %o0            ! memset(&cpuinfo, 0, NBPG)
+       sethi   0, %o1
+       sethi   %hi(CPUINFO_STRUCTSIZE), %o2
+       call    _C_LABEL(memset)
         add    %o1, %lo(CPUINFO_STRUCTSIZE), %o1
 
        /*



Home | Main Index | Thread Index | Old Index