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 Fix ARMv8 instructions



details:   https://anonhg.NetBSD.org/src/rev/97b317f0e8d2
branches:  trunk
changeset: 378707:97b317f0e8d2
user:      skrll <skrll%NetBSD.org@localhost>
date:      Sat Apr 24 07:58:12 2021 +0000

description:
Fix ARMv8 instructions

diffstat:

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

diffs (22 lines):

diff -r 5154299279dd -r 97b317f0e8d2 sys/arch/arm/include/lock.h
--- a/sys/arch/arm/include/lock.h       Sat Apr 24 07:52:07 2021 +0000
+++ b/sys/arch/arm/include/lock.h       Sat Apr 24 07:58:12 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lock.h,v 1.35 2021/04/24 06:38:39 skrll Exp $  */
+/*     $NetBSD: lock.h,v 1.36 2021/04/24 07:58:12 skrll Exp $  */
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -206,10 +206,10 @@ static __inline void __unused
 
 #ifdef _ARM_ARCH_8
        if (sizeof(*__alp) == 1) {
-               __asm __volatile("stlb\t%0, [%1]"
+               __asm __volatile("stlrb\t%w0, [%1]"
                    :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
        } else {
-               __asm __volatile("stl\t%0, [%1]"
+               __asm __volatile("stlr\t%0, [%1]"
                    :: "r"(__SIMPLELOCK_UNLOCKED), "r"(__alp) : "memory");
        }
 #else



Home | Main Index | Thread Index | Old Index