]> git.hungrycats.org Git - linux/commitdiff
[PATCH] (6/6) alpha fixes
authorAlexander Viro <viro@math.psu.edu>
Mon, 22 Apr 2002 05:59:02 +0000 (22:59 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Mon, 22 Apr 2002 05:59:02 +0000 (22:59 -0700)
 - fixed off-by-PAGE_OFFSET in populate_pmd() (alpha, again)

include/asm-alpha/pgalloc.h

index 445dc28b827a112b2dd49f5f587b802d14e18aaa..254a1f5a166e9503e59dea6bec51d4cbd64c327d 100644 (file)
@@ -12,7 +12,7 @@
 static inline void
 pmd_populate(struct mm_struct *mm, pmd_t *pmd, struct page *pte)
 {
-       pmd_set(pmd, (pte_t *)((pte - mem_map) << PAGE_SHIFT));
+       pmd_set(pmd, (pte_t *)(((pte - mem_map) << PAGE_SHIFT) + PAGE_OFFSET));
 }
 
 static inline void