diff options
author | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-06 12:27:09 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-12-06 12:27:09 -0800 |
commit | 09f3eca2b7e2762e223fdd359f9d0f6303a85f6c (patch) | |
tree | 03ba6cd7357ba1054f874b12db44b838806e316d /include | |
parent | e1b7361f32fdf60f575566ddef8a36b33086631d (diff) | |
parent | bee86f14d51a5a9a3b1897e301da1e415df0ba23 (diff) | |
download | linux-09f3eca2b7e2762e223fdd359f9d0f6303a85f6c.tar.gz linux-09f3eca2b7e2762e223fdd359f9d0f6303a85f6c.tar.bz2 linux-09f3eca2b7e2762e223fdd359f9d0f6303a85f6c.zip |
Merge branch 'for-2.6.24' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc
* 'for-2.6.24' of git://git.kernel.org/pub/scm/linux/kernel/git/galak/powerpc:
[POWERPC] Fix swapper_pg_dir size when CONFIG_PTE_64BIT=y on FSL_BOOKE
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/pgtable-ppc32.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/asm-powerpc/pgtable-ppc32.h b/include/asm-powerpc/pgtable-ppc32.h index fea2d8ff1e73..d1332bbcbd9b 100644 --- a/include/asm-powerpc/pgtable-ppc32.h +++ b/include/asm-powerpc/pgtable-ppc32.h @@ -86,6 +86,11 @@ extern int icache_44x_need_flush; * entries per page directory level: our page-table tree is two-level, so * we don't really have any PMD directory. */ +#ifndef __ASSEMBLY__ +#define PTE_TABLE_SIZE (sizeof(pte_t) << PTE_SHIFT) +#define PGD_TABLE_SIZE (sizeof(pgd_t) << (32 - PGDIR_SHIFT)) +#endif /* __ASSEMBLY__ */ + #define PTRS_PER_PTE (1 << PTE_SHIFT) #define PTRS_PER_PMD 1 #define PTRS_PER_PGD (1 << (32 - PGDIR_SHIFT)) |