From e6ca9c76da62a41f4dc855eb503ed636803dfec6 Mon Sep 17 00:00:00 2001 From: grehan Date: Sat, 7 Aug 2004 00:20:00 +0000 Subject: 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. --- sys/powerpc/include/cpufunc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/powerpc/include') 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 -- cgit v1.1