]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: move i386 memory setup code to e820_32.c
authorAlexander van Heukelum <heukelum@mailshack.com>
Wed, 23 Apr 2008 13:09:05 +0000 (15:09 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sun, 25 May 2008 08:55:09 +0000 (10:55 +0200)
commit0dbfafa5fcd4dd189e2adc7b6ed9e0405e846d79
tree6b3b9ea6a8c9b7163719e4f68772812c74f17168
parent0da72a4aeb4482c64c1142a2e36b556d13374937
x86: move i386 memory setup code to e820_32.c

The x86_64 code has centralized the memory setup code in
e820_64.c. This patch copies that approach to i386:

- early_param("mem", ...) parsing is moved from
setup_32.c to e820_32.c.

- setup_memory_map() and finish_e820_parsing() are
factored out from setup_arch(), and declarations
are added to e820_32.h.

- print_memory_map() is made static and removed from
e820_32.h.

- user_defined_memmap is marked as __initdata.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/e820_32.c
arch/x86/kernel/setup_32.c
include/asm-x86/e820_32.h