X-Git-Url: http://cvs.zerfleddert.de/cgi-bin/gitweb.cgi/ms2-kexec/blobdiff_plain/4e93cb000786b18ffd9929f33055cad2a7cebbcf..0c549ba1cfe1d2d61c07eccab7f274740b706ed6:/mmu.c 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;