Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/lib/libkern/arch/powerpc Actually use bzero.S. Also fix...
details: https://anonhg.NetBSD.org/src/rev/90c3c10e5381
branches: trunk
changeset: 543382:90c3c10e5381
user: matt <matt%NetBSD.org@localhost>
date: Mon Feb 24 07:14:17 2003 +0000
description:
Actually use bzero.S. Also fix bzero to use GET_CPUINFO
diffstat:
sys/lib/libkern/arch/powerpc/Makefile.inc | 6 +++---
sys/lib/libkern/arch/powerpc/bzero.S | 9 ++-------
2 files changed, 5 insertions(+), 10 deletions(-)
diffs (44 lines):
diff -r 2929b446831e -r 90c3c10e5381 sys/lib/libkern/arch/powerpc/Makefile.inc
--- a/sys/lib/libkern/arch/powerpc/Makefile.inc Mon Feb 24 07:09:18 2003 +0000
+++ b/sys/lib/libkern/arch/powerpc/Makefile.inc Mon Feb 24 07:14:17 2003 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile.inc,v 1.20 2003/02/24 07:09:18 matt Exp $
+# $NetBSD: Makefile.inc,v 1.21 2003/02/24 07:14:17 matt Exp $
SRCS+= __main.c __assert.c \
imax.c imin.c lmax.c lmin.c max.c min.c ulmax.c ulmin.c \
bswap16.c bswap32.c bswap64.c \
- bcmp.c bzero.c \
+ bcmp.c \
memchr.c memcmp.c \
strcat.c strcmp.c strcpy.c strcasecmp.c \
strncasecmp.c strncmp.c strncpy.c \
@@ -12,4 +12,4 @@
random.c strtoul.c \
syncicache.c
-SRCS+= ffs.S strlen.S
+SRCS+= ffs.S strlen.S bzero.S
diff -r 2929b446831e -r 90c3c10e5381 sys/lib/libkern/arch/powerpc/bzero.S
--- a/sys/lib/libkern/arch/powerpc/bzero.S Mon Feb 24 07:09:18 2003 +0000
+++ b/sys/lib/libkern/arch/powerpc/bzero.S Mon Feb 24 07:14:17 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bzero.S,v 1.4 2002/07/30 06:10:46 matt Exp $ */
+/* $NetBSD: bzero.S,v 1.5 2003/02/24 07:14:17 matt Exp $ */
/*-
* Copyright (C) 2001 Martin J. Laubach <mjl%netbsd.org@localhost>
@@ -197,12 +197,7 @@
#endif
#else /* _KERNEL */
-#ifdef MULTIPROCESSOR
- mfsprg r10, 0 /* Get cpu_info pointer */
-#else
- lis r10, cpu_info_store@ha
- addi r10, r10, cpu_info_store@l
-#endif
+ GET_CPUINFO(10) /* Get cpu_info pointer */
lwz r9, CPU_CI+4(r10) /* Load D$ line size */
cntlzw r10, r9 /* Calculate shift.. */
li r6, 31
Home |
Main Index |
Thread Index |
Old Index