powerpc: Add TLB management code for 64-bit Book3E
[linux-block.git] / arch / powerpc / kernel / setup_64.c
index a6b6c4c9ae419b3afd7f0b1f37d00b0733273b67..65aced7b833ab8db9ce34eb695a7f8cdb2905123 100644 (file)
@@ -62,6 +62,7 @@
 #include <asm/udbg.h>
 #include <asm/kexec.h>
 #include <asm/swiotlb.h>
+#include <asm/mmu_context.h>
 
 #include "setup.h"
 
@@ -147,6 +148,9 @@ void __init setup_paca(int cpu)
 {
        local_paca = &paca[cpu];
        mtspr(SPRN_SPRG_PACA, local_paca);
+#ifdef CONFIG_PPC_BOOK3E
+       mtspr(SPRN_SPRG_TLB_EXFRAME, local_paca->extlb);
+#endif
 }
 
 /*