WSL2-Linux-Kernel/arch/ppc/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 [PATCH] ppc32: remove some unnecessary includes of bootmem.h 2005-06-25 16:24:27 -07:00
44x_mmu.c [PATCH] ppc32: remove some unnecessary includes of bootmem.h 2005-06-25 16:24:27 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
fault.c [PATCH] ppc32: Kill init on unhandled synchronous signals 2005-09-10 10:15:11 -07:00
fsl_booke_mmu.c [PATCH] ppc32: remove some unnecessary includes of bootmem.h 2005-06-25 16:24:27 -07:00
hashtable.S kbuild: m68k,parisc,ppc,ppc64,s390,xtensa use generic asm-offsets.h support 2005-09-09 20:57:26 +02:00
init.c [PATCH] ppc: make phys_mem_access_prot() work with pfns instead of addresses 2005-10-29 14:25:49 +10:00
mem_pieces.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mem_pieces.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmu_context.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mmu_decl.h [PATCH] ppc32: Clean up NUM_TLBCAMS usage for Freescale Book-E PPC's 2005-06-21 18:46:24 -07:00
pgtable.c [PATCH] ppc32: Clean up NUM_TLBCAMS usage for Freescale Book-E PPC's 2005-06-21 18:46:24 -07:00
ppc_mmu.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
tlb.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00