[PATCH] i386: initialize end-of-memory variables as early as possible
commitba9c231f7499ff6918c069c72ff5fd836c76b963
authorJan Beulich <jbeulich@novell.com>
Tue, 26 Sep 2006 08:52:31 +0000 (26 10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:31 +0000 (26 10:52 +0200)
treedac0a7d22adf1d00ecf37e9b21f2115cbd12eb24
parent3b94355c47e2b025a7ececa0a14180e8fce6b0f1
[PATCH] i386: initialize end-of-memory variables as early as possible

Move initialization of all memory end variables to as early as
possible, so that dependent code doesn't need to check whether these
variables have already been set.

Change the range check in kunmap_atomic to actually make use of this
so that the no-mapping-estabished path (under CONFIG_DEBUG_HIGHMEM)
gets used only when the address is inside the lowmem area (and BUG()
otherwise).

Signed-off-by: Jan Beulich <jbeulich@novell.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/i386/kernel/setup.c
arch/i386/mm/discontig.c
arch/i386/mm/highmem.c
arch/i386/mm/init.c