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 The arm11 barriers are mcr (write), not...
details: https://anonhg.NetBSD.org/src/rev/a40480c6958b
branches: trunk
changeset: 781305:a40480c6958b
user: matt <matt%NetBSD.org@localhost>
date: Fri Aug 31 17:29:08 2012 +0000
description:
The arm11 barriers are mcr (write), not mrc (read)
diffstat:
sys/arch/arm/include/lock.h | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r f4081f132f8f -r a40480c6958b sys/arch/arm/include/lock.h
--- a/sys/arch/arm/include/lock.h Fri Aug 31 14:46:53 2012 +0000
+++ b/sys/arch/arm/include/lock.h Fri Aug 31 17:29:08 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: lock.h,v 1.20 2012/08/29 07:04:14 matt Exp $ */
+/* $NetBSD: lock.h,v 1.21 2012/08/31 17:29:08 matt Exp $ */
/*-
* Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -90,7 +90,7 @@
#ifdef _ARM_ARCH_7
"dmb"
#else
- "mrc p15, 0, %[__tmp], c7, c10, 5"
+ "mcr\tp15, 0, %[__tmp], c7, c10, 5"
#endif
: [__rv] "=&r" (__rv), [__tmp] "=&r"(__tmp)
: [__val] "r" (__val), [__ptr] "r" (__ptr) : "cc", "memory");
@@ -105,7 +105,7 @@
#ifdef _ARM_ARCH_7
"nop"
#else
- "mrc p15, 0, %[__tmp], c7, c10, 5"
+ "mcr\tp15, 0, %[__tmp], c7, c10, 5"
#endif
: [__rv] "=&r" (__rv), [__tmp] "=&r"(__tmp)
: [__val] "r" (__val), [__ptr] "r" (__ptr) : "cc", "memory");
@@ -146,7 +146,7 @@
#ifdef _ARM_ARCH_7
"dmb"
#elif defined(_ARM_ARCH_6)
- "mrc p15, 0, %[__tmp], c7, c10, 5"
+ "mcr\tp15, 0, %[__tmp], c7, c10, 5"
#else
"nop"
#endif
Home |
Main Index |
Thread Index |
Old Index