From: Michael Gernoth Date: Sun, 22 May 2011 10:44:23 +0000 (+0200) Subject: fix compilation of mmu.c and hardcode location of initmm X-Git-Url: https://git.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/commitdiff_plain/86b0196ceb5fcb8336382952635d463d9b136e11 fix compilation of mmu.c and hardcode location of initmm --- diff --git a/mmu.c b/mmu.c index 6d4bce3..7d25e16 100644 --- a/mmu.c +++ b/mmu.c @@ -16,7 +16,6 @@ #include #include #include -#include #include #include @@ -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;