Module Name: src Committed By: joerg Date: Sat Jan 4 02:58:38 UTC 2014
Modified Files: src/sys/arch/arm/arm: cpufunc.c Log Message: Add missing volatile for hidden side effects of asm. To generate a diff of this commit: cvs rdiff -u -r1.132 -r1.133 src/sys/arch/arm/arm/cpufunc.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/arm/arm/cpufunc.c diff -u src/sys/arch/arm/arm/cpufunc.c:1.132 src/sys/arch/arm/arm/cpufunc.c:1.133 --- src/sys/arch/arm/arm/cpufunc.c:1.132 Fri Dec 20 06:48:09 2013 +++ src/sys/arch/arm/arm/cpufunc.c Sat Jan 4 02:58:38 2014 @@ -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 @@ sa110_setup(char *args) * 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 */