aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKumar Gala <galak@freescale.com>2005-04-16 18:24:21 -0400
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-16 18:24:21 -0400
commita85f6d4aca822acdb49d27c44519cd6514b06a1d (patch)
treedf39f6f9cfd8017be90ab658196336c69b8de9b5 /include
parent7a1e335085ead05da08f791340f58b493126894d (diff)
[PATCH] ppc32: make usage of CONFIG_PTE_64BIT & CONFIG_PHYS_64BIT consistent
CONFIG_PTE_64BIT & CONFIG_PHYS_64BIT are not currently consistently used in the code base. Fixed up the usage such that CONFIG_PTE_64BIT is used when we have a 64-bit PTE regardless of physical address width. CONFIG_PHYS_64BIT is used if the physical address width is larger than 32-bits, regardless of PTE size. These changes required a few sub-arch specific ifdef's to be fixed and the introduction of a physical address format string. Signed-off-by: Kumar Gala <kumar.gala@freescale.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include')
-rw-r--r--include/asm-ppc/mmu.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/asm-ppc/mmu.h b/include/asm-ppc/mmu.h
index 4a0c67f672c2..d465aee1c82e 100644
--- a/include/asm-ppc/mmu.h
+++ b/include/asm-ppc/mmu.h
@@ -15,11 +15,13 @@
15 * virtual/physical addressing like 32-bit virtual / 36-bit 15 * virtual/physical addressing like 32-bit virtual / 36-bit
16 * physical need a larger than native word size type. -Matt 16 * physical need a larger than native word size type. -Matt
17 */ 17 */
18#ifndef CONFIG_PTE_64BIT 18#ifndef CONFIG_PHYS_64BIT
19typedef unsigned long phys_addr_t; 19typedef unsigned long phys_addr_t;
20#define PHYS_FMT "%.8lx"
20#else 21#else
21typedef unsigned long long phys_addr_t; 22typedef unsigned long long phys_addr_t;
22extern phys_addr_t fixup_bigphys_addr(phys_addr_t, phys_addr_t); 23extern phys_addr_t fixup_bigphys_addr(phys_addr_t, phys_addr_t);
24#define PHYS_FMT "%16Lx"
23#endif 25#endif
24 26
25/* Default "unsigned long" context */ 27/* Default "unsigned long" context */