#include <linux/nodemask.h>
#include <linux/ioport.h>
+#include "tlbflush.h"
#include <asm/cputype.h>
#include <asm/mach-types.h>
#include <asm/sections.h>
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;
pmd[1] = __pmd(pmdval + (1 << (PGDIR_SHIFT - 1)));
flush_pmd_entry(pmd);
}
+ my_local_flush_tlb_all();
}