Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 ucas_64: reorder 64-bit args on 32-...
details: https://anonhg.NetBSD.org/src/rev/32b9d3b03143
branches: trunk
changeset: 756275:32b9d3b03143
user: nakayama <nakayama%NetBSD.org@localhost>
date: Sat Jul 10 10:12:07 2010 +0000
description:
ucas_64: reorder 64-bit args on 32-bit kernels.
diffstat:
sys/arch/sparc64/sparc64/copy.S | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (21 lines):
diff -r 9341d94acef9 -r 32b9d3b03143 sys/arch/sparc64/sparc64/copy.S
--- a/sys/arch/sparc64/sparc64/copy.S Sat Jul 10 10:10:36 2010 +0000
+++ b/sys/arch/sparc64/sparc64/copy.S Sat Jul 10 10:12:07 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: copy.S,v 1.3 2010/05/24 02:19:10 mrg Exp $ */
+/* $NetBSD: copy.S,v 1.4 2010/07/10 10:12:07 nakayama Exp $ */
/*
* Copyright (c) 2006-2010 Matthew R. Green
@@ -652,6 +652,11 @@
* int ucas_64(volatile int64_t *uptr, int64_t old, int64_t new, int64_t *ret);
*/
ENTRY(ucas_64)
+#ifndef _LP64
+ COMBINE(%o1, %o2, %o1)
+ COMBINE(%o3, %o4, %o2)
+ mov %o5, %o3
+#endif
sethi %hi(CPCB), %o4
wr %g0, ASI_AIUS, %asi
LDPTR [%o4 + %lo(CPCB)], %o4
Home |
Main Index |
Thread Index |
Old Index