[POWERPC] Port fixmap from x86 and use for kmap_atomic
authorKumar Gala <galak@kernel.crashing.org>
Wed, 23 Apr 2008 13:05:20 +0000 (23:05 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 24 Apr 2008 10:58:02 +0000 (20:58 +1000)
commit2c419bdeca1d958bb02228b5141695f312d8c633
tree4553b9bf7b75025c5bbeb25528d97f5338673b0b
parent2fd53e02be9a73cc49d69e0ff8860daa7b5bf8ab
[POWERPC] Port fixmap from x86 and use for kmap_atomic

The fixmap code from x86 allows us to have compile time virtual addresses
that we change the physical addresses of at run time.

This is useful for applications like kmap_atomic, PCI config that is done
via direct memory map, kexec/kdump.

We got ride of CONFIG_HIGHMEM_START as we can now determine a more optimal
location for PKMAP_BASE based on where the fixmap addresses start and
working back from there.

Additionally, the kmap code in asm-powerpc/highmem.h always had debug
enabled.  Moved to using CONFIG_DEBUG_HIGHMEM to determine if we should
have the extra debug checking.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/Kconfig
arch/powerpc/mm/init_32.c
arch/powerpc/mm/mem.c
arch/powerpc/mm/pgtable_32.c
include/asm-powerpc/fixmap.h [new file with mode: 0644]
include/asm-powerpc/highmem.h