alistair23-linux/arch/powerpc
Benjamin Herrenschmidt 5b11abfdb5 powerpc/pci: mmap anonymous memory when legacy_mem doesn't exist
The new legacy_mem file in sysfs is causing problems with X on machines
that don't support legacy memory access. The way I initially implemented
it, we would fail with -ENXIO when trying to mmap it, thus exposing to
X that we do support the API but there is no legacy memory.

Unfortunately, X poor error handling is causing it to fail to start when
it gets this error.

This implements a workaround hack that instead maps anonymous memory
instead (using shmem if VM_SHARED is set, just like /dev/zero does).

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
2009-02-10 14:39:08 +11:00
..
boot powerpc/83xx: Fix TSEC0 workability on MPC8313E-RDB boards 2009-02-06 10:38:57 -06:00
configs powerpc/83xx: Fix TSEC0 workability on MPC8313E-RDB boards 2009-02-06 10:38:57 -06:00
include/asm powerpc/ps3: Use dma_addr_t down through the stack 2009-01-16 16:15:11 +11:00
kernel powerpc/pci: mmap anonymous memory when legacy_mem doesn't exist 2009-02-10 14:39:08 +11:00
kvm KVM: Consolidate userspace memory capability reporting into common code 2008-12-31 16:55:46 +02:00
lib powerpc: Don't emulate mr. instructions 2009-02-10 14:39:07 +11:00
math-emu powerpc: Add SPE/EFP math emulation for E500v1/v2 processors. 2008-12-03 08:19:16 -06:00
mm powerpc/fsl-booke: Fix mapping functions to use phys_addr_t 2009-02-09 21:11:55 -06:00
oprofile powerpc/cell: Add missing #include for oprofile 2009-02-10 14:39:08 +11:00
platforms arch/powerpc: Eliminate double sizeof 2009-02-06 10:44:28 -06:00
sysdev powerpc/cpm2: Fix set interrupt type 2009-02-06 10:44:02 -06:00
xmon powerpc: Prepare xmon_save_regs for use with kdump 2008-12-23 15:13:28 +11:00
Kconfig powerpc: Remove arch/ppc cruft from Kconfig 2009-01-28 17:15:51 +11:00
Kconfig.debug powerpc: Allow the max stack trace depth to be configured 2008-12-03 20:46:35 +11:00
Makefile powerpc: Remove unncessary SPE related compiler flag 2008-12-03 08:19:10 -06:00