From 1a6f777efee5948895819d82194dc3aaca4fdbde Mon Sep 17 00:00:00 2001 From: Peter Grehan Date: Sat, 7 Aug 2004 00:20:00 +0000 Subject: [PATCH] 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(-) diff --git a/sys/powerpc/include/cpufunc.h b/sys/powerpc/include/cpufunc.h index 84be33d7ce0..f02ff3bd55a 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