android_kernel_xiaomi_sm8350/arch/powerpc/mm
Roland Dreier 8b150478ae [PATCH] ppc: make phys_mem_access_prot() work with pfns instead of addresses
Change the phys_mem_access_prot() function to take a pfn instead of an
address.  This allows mmap64() to work on /dev/mem for addresses above 4G
on 32-bit architectures.  We start with a pfn in mmap_mem(), so there's no
need to convert to an address; in fact, it's actively bad, since the
conversion can overflow when the address is above 4G.

Similarly fix the ppc32 page_is_ram() function to avoid a conversion to an
address by directly comparing to max_pfn.  Working with max_pfn instead of
high_memory fixes page_is_ram() to give the right answer for highmem pages.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
Cc: Anton Blanchard <anton@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2005-10-29 14:25:49 +10:00
..
4xx_mmu.c
44x_mmu.c
fault.c [PATCH] powerpc: Fix warning related to do_dabr 2005-10-27 20:51:19 +10:00
fsl_booke_mmu.c
hash_low_32.S powerpc: Use reg.h instead of processor.h when we just want reg names 2005-10-10 22:20:10 +10:00
hash_low_64.S powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
hash_native_64.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
hash_utils_64.c powerpc: Move default hash table size calculation to hash_utils_64.c 2005-10-12 16:58:53 +10:00
hugetlbpage.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
imalloc.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
init_32.c [PATCH] powerpc: Purge bootinfo.h 2005-10-27 20:50:46 +10:00
init_64.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
lmb.c powerpc: Merge lmb.c and make MM initialization use it. 2005-10-06 12:23:33 +10:00
Makefile [PATCH] powerpc: Some more fixes to allow building for a Book-E processor 2005-10-20 09:43:32 +10:00
mem.c [PATCH] ppc: make phys_mem_access_prot() work with pfns instead of addresses 2005-10-29 14:25:49 +10:00
mmap.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
mmu_context_32.c powerpc: Rename files to have consistent _32/_64 suffixes 2005-10-10 21:52:43 +10:00
mmu_context_64.c powerpc: Rename files to have consistent _32/_64 suffixes 2005-10-10 21:52:43 +10:00
mmu_decl.h powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
numa.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
pgtable_32.c powerpc: Rename files to have consistent _32/_64 suffixes 2005-10-10 21:52:43 +10:00
pgtable_64.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
ppc_mmu_32.c powerpc: Rename files to have consistent _32/_64 suffixes 2005-10-10 21:52:43 +10:00
slb_low.S powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
slb.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
stab.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00
tlb_32.c powerpc: Rename files to have consistent _32/_64 suffixes 2005-10-10 21:52:43 +10:00
tlb_64.c powerpc: Merge arch/ppc64/mm to arch/powerpc/mm 2005-10-10 21:58:35 +10:00