aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/mm/pgtable_32.c
diff options
context:
space:
mode:
authorBecky Bruce <becky.bruce@freescale.com>2008-06-13 19:41:42 -0400
committerPaul Mackerras <paulus@samba.org>2008-06-30 08:31:03 -0400
commit7c5c4325d2d911fe54db3bc14149bfa558ae0acb (patch)
tree97c02e9d03bbbb1fff89e9e44eef1e53762e823e /arch/powerpc/mm/pgtable_32.c
parentbf2737f74ffd36f43c6ed11cd2c0826e1d59ad48 (diff)
powerpc: Change BAT code to use phys_addr_t
Currently, the physical address is an unsigned long, but it should be phys_addr_t in set_bat, [v/p]_mapped_by_bat. Also, create a macro that can convert a large physical address into the correct format for programming the BAT registers. Signed-off-by: Becky Bruce <becky.bruce@freescale.com> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/mm/pgtable_32.c')
-rw-r--r--arch/powerpc/mm/pgtable_32.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/mm/pgtable_32.c b/arch/powerpc/mm/pgtable_32.c
index e0ff59f21135..c7584072dfcc 100644
--- a/arch/powerpc/mm/pgtable_32.c
+++ b/arch/powerpc/mm/pgtable_32.c
@@ -53,9 +53,9 @@ extern void hash_page_sync(void);
53#endif 53#endif
54 54
55#ifdef HAVE_BATS 55#ifdef HAVE_BATS
56extern unsigned long v_mapped_by_bats(unsigned long va); 56extern phys_addr_t v_mapped_by_bats(unsigned long va);
57extern unsigned long p_mapped_by_bats(unsigned long pa); 57extern unsigned long p_mapped_by_bats(phys_addr_t pa);
58void setbat(int index, unsigned long virt, unsigned long phys, 58void setbat(int index, unsigned long virt, phys_addr_t phys,
59 unsigned int size, int flags); 59 unsigned int size, int flags);
60 60
61#else /* !HAVE_BATS */ 61#else /* !HAVE_BATS */