]> git.baikalelectronics.ru Git - kernel.git/commit
ppc/powerpc: workarounds for old Open Firmware versions
authorPaul Mackerras <paulus@samba.org>
Thu, 10 Nov 2005 01:00:55 +0000 (12:00 +1100)
committerPaul Mackerras <paulus@samba.org>
Thu, 10 Nov 2005 01:00:55 +0000 (12:00 +1100)
commitb84d48b4336ef8fc16accdbbccfc5a0a5f5cdbf6
tree7fb2e368a462fab4ce4cc275281ecd22e284653a
parenta351d1f682f2f633820243b030453c532706a340
ppc/powerpc: workarounds for old Open Firmware versions

This adds code to work around some problems with old versions of
Open Firmware, such as on the early powermacs (7500 etc.) and the
"Longtrail" CHRP machine.  On these machines we have to claim
the physical and virtual address ranges explicitly when claiming
memory and then set up a V->P mapping.

The Longtrail has more problems: setprop doesn't work, and we have
to set an "allow-reclaim" variable to 0 in order to get claim on
physical memory ranges to fail if the memory is already claimed.

Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/prom.c
arch/powerpc/kernel/prom_init.c
arch/powerpc/platforms/chrp/setup.c
arch/ppc/boot/include/of1275.h
arch/ppc/boot/of1275/Makefile
arch/ppc/boot/of1275/call_prom.c [new file with mode: 0644]
arch/ppc/boot/of1275/claim.c
arch/ppc/boot/of1275/finddevice.c