Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/arm Add missing volatile for hidden side effect...
details: https://anonhg.NetBSD.org/src/rev/d97860c36ce9
branches: trunk
changeset: 325721:d97860c36ce9
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jan 04 02:58:38 2014 +0000
description:
Add missing volatile for hidden side effects of asm.
diffstat:
sys/arch/arm/arm/cpufunc.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r c442f636e7e8 -r d97860c36ce9 sys/arch/arm/arm/cpufunc.c
--- a/sys/arch/arm/arm/cpufunc.c Sat Jan 04 02:57:50 2014 +0000
+++ b/sys/arch/arm/arm/cpufunc.c Sat Jan 04 02:58:38 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufunc.c,v 1.132 2013/12/20 06:48:09 matt Exp $ */
+/* $NetBSD: cpufunc.c,v 1.133 2014/01/04 02:58:38 joerg Exp $ */
/*
* arm7tdmi support code Copyright (c) 2001 John Fremlin
@@ -49,7 +49,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.132 2013/12/20 06:48:09 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.133 2014/01/04 02:58:38 joerg Exp $");
#include "opt_compat_netbsd.h"
#include "opt_cpuoptions.h"
@@ -3249,7 +3249,7 @@
* enable clockswitching, note that this doesn't read or write to r0,
* r0 is just to make it valid asm
*/
- __asm ("mcr 15, 0, r0, c15, c1, 2");
+ __asm volatile ("mcr 15, 0, r0, c15, c1, 2");
}
#endif /* CPU_SA110 */
Home |
Main Index |
Thread Index |
Old Index