Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/common/lib/libc/arch/sparc/atomic Use sparc64 code always on...
details: https://anonhg.NetBSD.org/src/rev/c7bc8fdcb103
branches: trunk
changeset: 345446:c7bc8fdcb103
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sun May 29 05:10:34 2016 +0000
description:
Use sparc64 code always on 32-bit sparc64 kernels since %psr read/write
instructions used in sparc's atomic_cas.S don't exist in SPARC-V9.
diffstat:
common/lib/libc/arch/sparc/atomic/Makefile.inc | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r 49363965d521 -r c7bc8fdcb103 common/lib/libc/arch/sparc/atomic/Makefile.inc
--- a/common/lib/libc/arch/sparc/atomic/Makefile.inc Sun May 29 03:02:07 2016 +0000
+++ b/common/lib/libc/arch/sparc/atomic/Makefile.inc Sun May 29 05:10:34 2016 +0000
@@ -1,10 +1,11 @@
-# $NetBSD: Makefile.inc,v 1.21 2016/02/27 19:19:33 joerg Exp $
+# $NetBSD: Makefile.inc,v 1.22 2016/05/29 05:10:34 nakayama Exp $
.include <bsd.own.mk>
# This is called with MACHINE=sparc64 && MACHINE_ARCH=sparc when building
# 32 bit kernels for ultrasparc hardware
-.if ${MACHINE} == "sparc64" && ${HAVE_LLVM:Uno} == "no"
+.if ${MACHINE} == "sparc64" && \
+ (${HAVE_LLVM:Uno} == "no" || (defined(LIB) && ${LIB} == "kern"))
SPARC64DIR= ${.PARSEDIR}/../../sparc64/atomic
.PATH.c: ${SPARC64DIR}
Home |
Main Index |
Thread Index |
Old Index