diff options
author | Kumar Gala <galak@kernel.crashing.org> | 2009-02-09 21:08:07 -0600 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2009-02-09 21:11:55 -0600 |
commit | 6c24b17453c8dc444a746e45b8a404498fc9fcf7 (patch) | |
tree | 4164ccb60ca89ac37daa7f3f9c52a164473227b7 /arch/powerpc/mm/fsl_booke_mmu.c | |
parent | 08c6e3a57877ceda5c2f4c99ae7d433b8eef779a (diff) | |
download | linux-6c24b17453c8dc444a746e45b8a404498fc9fcf7.tar.gz linux-6c24b17453c8dc444a746e45b8a404498fc9fcf7.tar.bz2 linux-6c24b17453c8dc444a746e45b8a404498fc9fcf7.zip |
powerpc/fsl-booke: Fix mapping functions to use phys_addr_t
Fixed v_mapped_by_tlbcam() and p_mapped_by_tlbcam() to use phys_addr_t
instead of unsigned long. In 36-bit physical mode we really need these
functions to deal with phys_addr_t when trying to match a physical
address or when returning one.
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm/fsl_booke_mmu.c')
-rw-r--r-- | arch/powerpc/mm/fsl_booke_mmu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/powerpc/mm/fsl_booke_mmu.c b/arch/powerpc/mm/fsl_booke_mmu.c index 1971e4ee3d6e..ea6e41e39d9f 100644 --- a/arch/powerpc/mm/fsl_booke_mmu.c +++ b/arch/powerpc/mm/fsl_booke_mmu.c @@ -73,7 +73,7 @@ extern unsigned int tlbcam_index; /* * Return PA for this VA if it is mapped by a CAM, or 0 */ -unsigned long v_mapped_by_tlbcam(unsigned long va) +phys_addr_t v_mapped_by_tlbcam(unsigned long va) { int b; for (b = 0; b < tlbcam_index; ++b) @@ -85,7 +85,7 @@ unsigned long v_mapped_by_tlbcam(unsigned long va) /* * Return VA for a given PA or 0 if not mapped */ -unsigned long p_mapped_by_tlbcam(unsigned long pa) +unsigned long p_mapped_by_tlbcam(phys_addr_t pa) { int b; for (b = 0; b < tlbcam_index; ++b) |