Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm32 #ifdef _ARM_ARCH_7 the dmbs
details: https://anonhg.NetBSD.org/src/rev/056fd6eb05bb
branches: trunk
changeset: 937299:056fd6eb05bb
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Aug 15 13:33:54 2020 +0000
description:
#ifdef _ARM_ARCH_7 the dmbs
diffstat:
sys/arch/arm/arm32/cpuswitch.S | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diffs (39 lines):
diff -r f8397cefde6a -r 056fd6eb05bb sys/arch/arm/arm32/cpuswitch.S
--- a/sys/arch/arm/arm32/cpuswitch.S Sat Aug 15 13:32:26 2020 +0000
+++ b/sys/arch/arm/arm32/cpuswitch.S Sat Aug 15 13:33:54 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpuswitch.S,v 1.102 2020/08/14 16:18:36 skrll Exp $ */
+/* $NetBSD: cpuswitch.S,v 1.103 2020/08/15 13:33:54 skrll Exp $ */
/*
* Copyright 2003 Wasabi Systems, Inc.
@@ -87,7 +87,7 @@
#include <arm/asm.h>
#include <arm/locore.h>
- RCSID("$NetBSD: cpuswitch.S,v 1.102 2020/08/14 16:18:36 skrll Exp $")
+ RCSID("$NetBSD: cpuswitch.S,v 1.103 2020/08/15 13:33:54 skrll Exp $")
/* LINTSTUB: include <sys/param.h> */
@@ -191,7 +191,10 @@
/* We have a new curlwp now so make a note of it */
str r6, [r5, #(CI_CURLWP)]
+
+#ifdef _ARM_ARCH_7
dmb /* see comments in kern_mutex.c */
+#endif
/* Get the new pcb */
ldr r7, [r6, #(L_PCB)]
@@ -389,7 +392,9 @@
mcr p15, 0, r5, c13, c0, 4 /* save new lwp */
#endif
str r5, [r7, #(CI_CURLWP)] /* save new lwp */
+#ifdef _ARM_ARCH_7
dmb /* see comments in kern_mutex.c */
+#endif
#ifdef KASAN
mov r0, r5
Home |
Main Index |
Thread Index |
Old Index