kernel-ark/arch/x86
Thomas Gleixner 31eedd823c x86: zap invalid and unused pmds in early boot
The early boot code maps KERNEL_TEXT_SIZE (currently 40MB) starting
from __START_KERNEL_map. The kernel itself only needs _text to _end
mapped in the high alias. On relocatible kernels the ASM setup code
adjusts the compile time created high mappings to the relocation. This
creates invalid pmd entries for negative offsets:

0xffffffff80000000 -> pmd entry: ffffffffff2001e3
It points outside of the physical address space and is marked present.

This starts at the virtual address __START_KERNEL_map and goes up to
the point where the first valid physical address (0x0) is mapped.

Zap the mappings before _text and after _end right away in early
boot. This removes also the invalid entries.

Furthermore it simplifies the range check for high aliases.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: H. Peter Anvin <hpa@zytor.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
2008-02-18 20:54:14 +01:00
..
boot Merge git://git.kernel.org/pub/scm/linux/kernel/git/x86/linux-2.6-x86 2008-02-09 23:29:57 -08:00
configs x86, core: remove CONFIG_FORCED_INLINING 2008-02-09 23:24:09 +01:00
crypto
ia32 Sanitize the type of struct user.u_ar0 2008-02-07 08:42:30 -08:00
kernel x86: zap invalid and unused pmds in early boot 2008-02-18 20:54:14 +01:00
kvm
lguest
lib
mach-default
mach-es7000
mach-generic
mach-rdc321x
mach-visws
mach-voyager
math-emu
mm x86: zap invalid and unused pmds in early boot 2008-02-18 20:54:14 +01:00
oprofile
pci Change pci_raw_ops to pci_raw_read/write 2008-02-10 12:52:46 -08:00
power x86 PM: update stale comments 2008-02-09 23:24:09 +01:00
vdso x86: vdso_install fix 2008-02-11 20:50:09 -08:00
video
xen xen: unpin initial Xen pagetable once we're finished with it 2008-02-13 16:20:35 +01:00
Kconfig KVM is not seen under X86 config with latest git (32 bit compile) 2008-02-14 23:30:21 +01:00
Kconfig.cpu
Kconfig.debug x86: cpa, enable CONFIG_DEBUG_PAGEALLOC on 64-bit 2008-02-09 23:24:09 +01:00
Makefile x86 PM: move 64-bit hibernation files to arch/x86/power 2008-02-09 23:24:09 +01:00
Makefile_32.cpu