From 86b0196ceb5fcb8336382952635d463d9b136e11 Mon Sep 17 00:00:00 2001 From: Michael Gernoth Date: Sun, 22 May 2011 12:44:23 +0200 Subject: [PATCH] fix compilation of mmu.c and hardcode location of initmm --- mmu.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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; -- 2.39.5