]> git.zerfleddert.de Git - ms2-kexec/blobdiff - mmu.c
update offsets to new european GB kernel, set software booting from USB
[ms2-kexec] / mmu.c
diff --git a/mmu.c b/mmu.c
index 7d25e1673b5de92a6c6a0bcf01ca5c7392925529..f58a7bdb01b0bf20ffb2818d3fb73b67a8e0c80c 100644 (file)
--- a/mmu.c
+++ b/mmu.c
@@ -17,6 +17,7 @@
 #include <linux/nodemask.h>
 #include <linux/ioport.h>
 
+#include "tlbflush.h"
 #include <asm/cputype.h>
 #include <asm/mach-types.h>
 #include <asm/sections.h>
@@ -41,19 +42,7 @@ void setup_mm_for_reboot(char mode)
        pgd_t *pgd;
        int i;
 
-       if (current->mm && current->mm->pgd)
-               pgd = current->mm->pgd;
-#if 0
-       else
-               pgd = init_mm.pgd;
-#else
-       else
-       {
-               struct mm_struct *initmm = (struct mm_struct *)0xc05672a0;
-               pgd = initmm->pgd;
-       }
-#warning FIXME init_mm is no longer exported
-#endif
+       pgd = current->mm->pgd;
 
        base_pmdval = PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | PMD_TYPE_SECT;
 
@@ -66,4 +55,5 @@ void setup_mm_for_reboot(char mode)
                pmd[1] = __pmd(pmdval + (1 << (PGDIR_SHIFT - 1)));
                flush_pmd_entry(pmd);
        }
+       my_local_flush_tlb_all();
 }
Impressum, Datenschutz