Mark as volatile, just to be sure.

This commit is contained in:
joerg 2015-03-22 21:45:12 +00:00
parent 3884499e40
commit bcfe277c29

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_machdep.c,v 1.20 2014/03/03 08:45:18 matt Exp $ */
/* $NetBSD: sys_machdep.c,v 1.21 2015/03/22 21:45:12 joerg Exp $ */
/*
* Copyright (c) 1995-1997 Mark Brinicombe.
@ -41,7 +41,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.20 2014/03/03 08:45:18 matt Exp $");
__KERNEL_RCSID(0, "$NetBSD: sys_machdep.c,v 1.21 2015/03/22 21:45:12 joerg Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@ -171,7 +171,7 @@ cpu_lwp_setprivate(lwp_t *l, void *addr)
#ifdef _ARM_ARCH_6
if (l == curlwp) {
kpreempt_disable();
__asm("mcr p15, 0, %0, c13, c0, 3" : : "r" (addr));
__asm __volatile("mcr p15, 0, %0, c13, c0, 3" : : "r" (addr));
kpreempt_enable();
}
return 0;