]> git.zerfleddert.de Git - ms2-kexec/blobdiff - mmu.c
fix compilation of mmu.c and hardcode location of initmm
[ms2-kexec] / mmu.c
diff --git a/mmu.c b/mmu.c
index 6d4bce35af99f4f4da20b1c9be813796cf6c2dc6..7d25e1673b5de92a6c6a0bcf01ca5c7392925529 100644 (file)
--- a/mmu.c
+++ b/mmu.c
@@ -16,7 +16,6 @@
 #include <linux/mman.h>
 #include <linux/nodemask.h>
 #include <linux/ioport.h>
-#include <linux/lttlite-events.h>
 
 #include <asm/cputype.h>
 #include <asm/mach-types.h>
@@ -44,8 +43,17 @@ void setup_mm_for_reboot(char mode)
 
        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
 
        base_pmdval = PMD_SECT_AP_WRITE | PMD_SECT_AP_READ | PMD_TYPE_SECT;
 
Impressum, Datenschutz