Actually use bzero.S. Also fix bzero to use GET_CPUINFO
This commit is contained in:
parent
05a4c83a70
commit
97d38cdec2
|
@ -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 @@ SRCS+= __main.c __assert.c \
|
|||
random.c strtoul.c \
|
||||
syncicache.c
|
||||
|
||||
SRCS+= ffs.S strlen.S
|
||||
SRCS+= ffs.S strlen.S bzero.S
|
||||
|
|
|
@ -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>
|
||||
|
@ -197,12 +197,7 @@ cb_cacheline_known:
|
|||
#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
|
||||
|
|
Loading…
Reference in New Issue