Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/include Don't use V8 atomic instruction for AA3...



details:   https://anonhg.NetBSD.org/src/rev/2672038a61a7
branches:  trunk
changeset: 379390:2672038a61a7
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sun May 30 02:28:59 2021 +0000

description:
Don't use V8 atomic instruction for AA32 mode.

diffstat:

 sys/arch/arm/include/lock.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r c7da95e1e52d -r 2672038a61a7 sys/arch/arm/include/lock.h
--- a/sys/arch/arm/include/lock.h       Sun May 30 02:28:35 2021 +0000
+++ b/sys/arch/arm/include/lock.h       Sun May 30 02:28:59 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.38 2021/04/27 06:03:09 skrll Exp $  */
+/*     $NetBSD: lock.h,v 1.39 2021/05/30 02:28:59 joerg Exp $  */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -204,7 +204,7 @@ static __inline void __unused
 __cpu_simple_unlock(__cpu_simple_lock_t *__alp)
 {
 
-#if defined(_ARM_ARCH_8)
+#if defined(_ARM_ARCH_8) && defined(__LP64__)
        if (sizeof(*__alp) == 1) {
                __asm __volatile("stlrb\t%w0, [%1]"
                    :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");



Home | Main Index | Thread Index | Old Index