patch-2.3.12 linux/arch/sparc/ap1000/apmmu.c

Next file: linux/arch/sparc/kernel/init_task.c
Previous file: linux/arch/ppc/mm/init.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.11/linux/arch/sparc/ap1000/apmmu.c linux/arch/sparc/ap1000/apmmu.c
@@ -295,7 +295,7 @@
 
 static inline void apmmu_uncache_page(unsigned long addr)
 {
-	pgd_t *pgdp = apmmu_pgd_offset(init_task.mm, addr);
+	pgd_t *pgdp = apmmu_pgd_offset(&init_mm, addr);
 	pmd_t *pmdp;
 	pte_t *ptep;
 
@@ -316,7 +316,7 @@
 
 static inline void apmmu_recache_page(unsigned long addr)
 {
-	pgd_t *pgdp = apmmu_pgd_offset(init_task.mm, addr);
+	pgd_t *pgdp = apmmu_pgd_offset(&init_mm, addr);
 	pmd_t *pmdp;
 	pte_t *ptep;
 
@@ -782,7 +782,7 @@
 	pte_t *ptep;
 
 	while(start < end) {
-		pgdp = apmmu_pgd_offset(init_task.mm, start);
+		pgdp = apmmu_pgd_offset(&init_mm, start);
 		if(apmmu_pgd_none(*pgdp)) {
 			pmdp = sparc_init_alloc(&mempool, APMMU_PMD_TABLE_SIZE);
 			apmmu_early_pgd_set(pgdp, pmdp);
@@ -804,7 +804,7 @@
 	pte_t *ptep;
 	unsigned start = virt_page<<12;
 
-	pgdp = apmmu_pgd_offset(init_task.mm, start);
+	pgdp = apmmu_pgd_offset(&init_mm, start);
 	if(apmmu_pgd_none(*pgdp)) {
 		pmdp = sparc_init_alloc(&mempool, APMMU_PMD_TABLE_SIZE);
 		apmmu_early_pgd_set(pgdp, pmdp);
@@ -824,7 +824,7 @@
 	pgd_t *pgdp;
 	unsigned start = virt_page<<12;
 
-	pgdp = apmmu_pgd_offset(init_task.mm, start);
+	pgdp = apmmu_pgd_offset(&init_mm, start);
 	*pgdp = __pgd((phys_page<<8) | prot);
 }
 
@@ -907,7 +907,7 @@
 		make_large_page((KERNBASE+phys)>>12,
 				(phys>>12),
 				APMMU_CACHE|APMMU_PRIV|APMMU_VALID);
-	init_task.mm->mmap->vm_start = page_offset = KERNBASE;
+	init_mm.mmap->vm_start = page_offset = KERNBASE;
 	stack_top = page_offset - PAGE_SIZE;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)