summaryrefslogtreecommitdiff
path: root/include/asm-alpha/pgalloc.h
diff options
context:
space:
mode:
authorAlexander Viro <viro@math.psu.edu>2002-04-21 22:59:02 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-04-21 22:59:02 -0700
commit9d129978ffec02e628b0ae543513723b82b11dc7 (patch)
tree9de4b5b9eaf178f017eb365dfb1a448ad0d73407 /include/asm-alpha/pgalloc.h
parent0c579f1d082b244fa731c11196e21588b394e6e1 (diff)
[PATCH] (6/6) alpha fixes
- fixed off-by-PAGE_OFFSET in populate_pmd() (alpha, again)
Diffstat (limited to 'include/asm-alpha/pgalloc.h')
-rw-r--r--include/asm-alpha/pgalloc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asm-alpha/pgalloc.h b/include/asm-alpha/pgalloc.h
index 445dc28b827a..254a1f5a166e 100644
--- a/include/asm-alpha/pgalloc.h
+++ b/include/asm-alpha/pgalloc.h
@@ -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