On 07/14/2017 02:57 AM, Julian Calaby wrote:
diff --git a/arch/sparc/include/asm/mmu_context_64.h b/arch/sparc/include/asm/mmu_context_64.h
index 2cddcda..b7e0373 100644
--- a/arch/sparc/include/asm/mmu_context_64.h
+++ b/arch/sparc/include/asm/mmu_context_64.h
@@ -112,6 +112,7 @@ static inline void switch_mm(struct mm_struct *old_mm, struct mm_struct *mm, str
* cpu0 to update it's TSB because at that point the cpu_vm_mask
* only had cpu1 set in it.
*/
+ __asm__ __volatile__("wrpr %0, %%pil;" : : "i" (PIL_NMI));
You're doing the same thing twice and it might be needed elsewhere, so
should this be in a macro so it's not copy-pasted everywhere?
Thanks,
Good idea, thanks. Revised patch on its way.
Rob
--
To unsubscribe from this list: send the line "unsubscribe sparclinux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html