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/437a28881063
branches: trunk
changeset: 961880:437a28881063
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 ae6817d9f2de -r 437a28881063 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 @@
#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