patch-1.3.25 linux/include/asm-alpha/pgtable.h
Next file: linux/include/linux/cyclades.h
Previous file: linux/fs/smbfs/dir.c
Back to the patch index
Back to the overall index
- Lines: 13
- Date:
Thu Sep 7 13:04:00 1995
- Orig file:
v1.3.24/linux/include/asm-alpha/pgtable.h
- Orig date:
Fri Jun 2 13:51:17 1995
diff -u --recursive --new-file v1.3.24/linux/include/asm-alpha/pgtable.h linux/include/asm-alpha/pgtable.h
@@ -249,10 +249,9 @@
#define PAGE_DIR_OFFSET(tsk,address) pgd_offset((tsk),(address))
/* 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.ptbr << PAGE_SHIFT) + PAGE_OFFSET) +
- ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1));
+ return mm->pgd + ((address >> PGDIR_SHIFT) & (PTRS_PER_PAGE - 1));
}
/* Find an entry in the second-level page table.. */
FUNET's LINUX-ADM group, [email protected]
TCL-scripts by Sam Shen, [email protected]
with Sam's (original) version of this