summaryrefslogtreecommitdiffstats
path: root/sys/powerpc/include/cpufunc.h
diff options
context:
space:
mode:
authorgrehan <grehan@FreeBSD.org>2004-08-07 00:20:00 +0000
committergrehan <grehan@FreeBSD.org>2004-08-07 00:20:00 +0000
commite6ca9c76da62a41f4dc855eb503ed636803dfec6 (patch)
treeffbfb48eaa09b53df94595ebeae8138eb50dc03f /sys/powerpc/include/cpufunc.h
parentef39095fcde6ac8b10d0df19b180c0124ee6745c (diff)
downloadFreeBSD-src-e6ca9c76da62a41f4dc855eb503ed636803dfec6.zip
FreeBSD-src-e6ca9c76da62a41f4dc855eb503ed636803dfec6.tar.gz
Always isync after a mtmsr. While perhaps not strictly necessary for PSL_EE
bit banging according to the OEA, it's better to be conservative than having to continually audit uses of this inline.
Diffstat (limited to 'sys/powerpc/include/cpufunc.h')
-rw-r--r--sys/powerpc/include/cpufunc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h
index 84be33d..f02ff3b 100644
--- a/sys/powerpc/include/cpufunc.h
+++ b/sys/powerpc/include/cpufunc.h
@@ -65,7 +65,7 @@ static __inline void
mtmsr(register_t value)
{
- __asm __volatile ("mtmsr %0" :: "r"(value));
+ __asm __volatile ("mtmsr %0; isync" :: "r"(value));
}
static __inline register_t
OpenPOWER on IntegriCloud