patch-1.3.24 linux/include/asm-i386/pgtable.h
Next file: linux/include/asm-i386/processor.h
Previous file: linux/include/asm-alpha/processor.h
Back to the patch index
Back to the overall index
-  Lines: 12
 -  Date:
Mon Sep  4 09:01:07 1995
 -  Orig file: 
v1.3.23/linux/include/asm-i386/pgtable.h
 -  Orig date: 
Tue Aug  8 12:31:41 1995
 
diff -u --recursive --new-file v1.3.23/linux/include/asm-i386/pgtable.h linux/include/asm-i386/pgtable.h
@@ -219,9 +219,9 @@
 { return pmd_val(pmd) & PAGE_MASK; }
 
 /* to find an entry in a page-table-directory */
-extern inline pgd_t * pgd_offset(struct task_struct * tsk, unsigned long address)
+extern inline pgd_t * pgd_offset(struct mm_struct * mm, unsigned long address)
 {
-	return (pgd_t *) tsk->tss.cr3 + (address >> PGDIR_SHIFT);
+	return mm->pgd + (address >> PGDIR_SHIFT);
 }
 
 /* Find an entry in the second-level page table.. */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov
with Sam's (original) version of this