kernel-ark/include/asm-powerpc
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
..
8253pit.h
a.out.h
agp.h
atomic.h
auxvec.h
backlight.h
bug.h
bugs.h
byteorder.h
checksum.h [PATCH] powerpc: merge include/asm-ppc*/checksum.h into include/asm-powerpc/checksum.h 2005-10-26 15:54:31 +10:00
cputable.h Merge changes from linux-2.6 by hand 2005-10-22 16:51:34 +10:00
cputime.h
dbdma.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
div64.h
dma.h
elf.h
emergency-restart.h
errno.h
fcntl.h
firmware.h [PATCH] powerpc: Move firmware.h into include/asm-powerpc 2005-10-26 16:00:26 +10:00
grackle.h powerpc: Pull out MPC106 (grackle) initialization code into its own file 2005-10-26 17:16:38 +10:00
hardirq.h
heathrow.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
hw_irq.h
i8259.h powerpc: Merge i8259.c into arch/powerpc/sysdev 2005-10-26 16:47:42 +10:00
ioctl.h
ioctls.h
iommu.h powerpc: move iSeries/iSeries_pci.h to platforms/iseries 2005-10-14 14:51:42 +10:00
ipc.h
irq.h powerpc: Fix interrupt-tree parsing 2005-10-26 17:19:06 +10:00
kdebug.h
keylargo.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
kmap_types.h
kprobes.h
linkage.h
lmb.h
local.h
machdep.h [PATCH] ppc: make phys_mem_access_prot() work with pfns instead of addresses 2005-10-29 14:25:49 +10:00
macio.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
mc146818rtc.h
mediabay.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
mman.h
module.h
mpic.h powerpc: Move smp_mpic_message_pass into mpic.c 2005-10-20 17:09:51 +10:00
msgbuf.h
namei.h
of_device.h
ohare.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
oprofile_impl.h
param.h
parport.h [PATCH] powerpc: Merge parport.h 2005-10-27 20:50:54 +10:00
percpu.h
pmac_feature.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
pmac_low_i2c.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
pmc.h [PATCH] powerpc: Merge ppc64 pmc.[ch] with ppc32 perfmon.[ch] 2005-10-20 16:22:24 +10:00
poll.h
posix_types.h
ppc_asm.h powerpc: Merge xmon 2005-10-28 22:53:37 +10:00
ppc-pci.h
processor.h [PATCH] powerpc: Fix handling of fpscr on 64-bit 2005-10-27 20:48:50 +10:00
prom.h powerpc: undeprecate the old OF device tree accessors for now 2005-10-27 16:45:29 +10:00
pSeries_reconfig.h
reg.h powerpc: Merge xmon 2005-10-28 22:53:37 +10:00
resource.h
rtas.h powerpc: Merge machdep.h 2005-10-19 23:11:21 +10:00
rtc.h powerpc: Make set_rtc_time() return error code from lower-level function 2005-10-22 15:57:55 +10:00
rwsem.h
scatterlist.h [PATCH] powerpc: merge scatterlist.h 2005-10-27 16:45:52 +10:00
seccomp.h
sections.h
semaphore.h
sembuf.h
setup.h
shmbuf.h
shmparam.h
siginfo.h
smu.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
socket.h
sockios.h
spinlock_types.h
sstep.h powerpc: Make single-stepping emulation (mostly) usable on 32-bit 2005-10-28 22:48:08 +10:00
statfs.h
string.h
synch.h
system.h [PATCH] powerpc: Fix handling of fpscr on 64-bit 2005-10-27 20:48:50 +10:00
termbits.h
termios.h
thread_info.h [PATCH] powerpc: Don't use kmalloc() for kernel stacks 2005-10-27 20:51:13 +10:00
time.h powerpc: Fix time code for 601 processors 2005-10-23 17:14:56 +10:00
timex.h
topology.h
types.h [PATCH] ppc64: make dma_addr_t 64 bits 2005-10-27 16:45:50 +10:00
unaligned.h
uninorth.h powerpc: Merge various powermac-related header files. 2005-10-20 20:53:39 +10:00
unistd.h
user.h
vga.h
vio.h powerpc: Add a shutdown member to vio_driver 2005-10-24 17:40:23 +10:00
xmon.h powerpc: Merge xmon 2005-10-28 22:53:37 +10:00
xor.h