patch-2.3.12 linux/arch/sparc/mm/srmmu.c
Next file: linux/arch/sparc/mm/sun4c.c
Previous file: linux/arch/sparc/mm/fault.c
Back to the patch index
Back to the overall index
- Lines: 54
- Date:
Sun Jul 25 13:45:25 1999
- Orig file:
v2.3.11/linux/arch/sparc/mm/srmmu.c
- Orig date:
Thu Jul 8 15:42:19 1999
diff -u --recursive --new-file v2.3.11/linux/arch/sparc/mm/srmmu.c linux/arch/sparc/mm/srmmu.c
@@ -846,7 +846,7 @@
unsigned long tmp;
physaddr &= PAGE_MASK;
- pgdp = srmmu_pgd_offset(init_task.mm, virt_addr);
+ pgdp = srmmu_pgd_offset(&init_mm, virt_addr);
pmdp = pmd_offset(pgdp, virt_addr);
ptep = pte_offset(pmdp, virt_addr);
tmp = (physaddr >> 4) | SRMMU_ET_PTE;
@@ -871,7 +871,7 @@
pmd_t *pmdp;
pte_t *ptep;
- pgdp = srmmu_pgd_offset(init_task.mm, virt_addr);
+ pgdp = srmmu_pgd_offset(&init_mm, virt_addr);
pmdp = pmd_offset(pgdp, virt_addr);
ptep = pte_offset(pmdp, virt_addr);
@@ -1476,7 +1476,7 @@
pte_t *ptep;
while(start < end) {
- pgdp = srmmu_pgd_offset(init_task.mm, start);
+ pgdp = srmmu_pgd_offset(&init_mm, start);
if(srmmu_pgd_none(*pgdp)) {
pmdp = sparc_init_alloc(&mempool, SRMMU_PMD_TABLE_SIZE);
srmmu_early_pgd_set(pgdp, pmdp);
@@ -1526,7 +1526,7 @@
what = 2;
}
- pgdp = srmmu_pgd_offset(init_task.mm, start);
+ pgdp = srmmu_pgd_offset(&init_mm, start);
if(what == 2) {
*pgdp = __pgd(prompte);
start += SRMMU_PGDIR_SIZE;
@@ -1626,7 +1626,7 @@
/* Create a third-level SRMMU 16MB page mapping. */
__initfunc(static void do_large_mapping(unsigned long vaddr, unsigned long phys_base))
{
- pgd_t *pgdp = srmmu_pgd_offset(init_task.mm, vaddr);
+ pgd_t *pgdp = srmmu_pgd_offset(&init_mm, vaddr);
unsigned long big_pte;
MKTRACE(("dlm[v<%08lx>-->p<%08lx>]", vaddr, phys_base));
@@ -1840,7 +1840,7 @@
}
}
MKTRACE(("success\n"));
- init_task.mm->mmap->vm_start = page_offset = low_base;
+ init_mm.mmap->vm_start = page_offset = low_base;
stack_top = page_offset - PAGE_SIZE;
BTFIXUPSET_SETHI(page_offset, low_base);
BTFIXUPSET_SETHI(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)