]> git.baikalelectronics.ru Git - kernel.git/commit
x86: reserve end-of-conventional-memory to 1MB on 32-bit
authorAlexander van Heukelum <heukelum@mailshack.com>
Sat, 1 Mar 2008 16:09:12 +0000 (17:09 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 17 Apr 2008 15:40:51 +0000 (17:40 +0200)
commit820f13b5f873fb10816b6c6d2a1244cf6b6f2712
tree616250e345885a6f43dba0f407280d0304997ae3
parent48d6d420b2f603cd97d066def0c11fee9c398216
x86: reserve end-of-conventional-memory to 1MB on 32-bit

This patch adds explicit detection of the EBDA and reservation
of the rom and adapter address space 0xa0000-0x100000 to the
i386 kernels. Before this patch, the EBDA size was hardcoded
as 4Kb. Also, the reservation of the adapter range was done by
modifying the e820 map which is now not necessary any longer,
and that code is removed from copy_e820_map.

The amount of conventional memory and the start of the EBDA are
detected by reading the BIOS data area directly. Paravirtual
environments do not provide this area, so we bail out early
in that case. They will just have to set up a correct memory
map to start with.

Signed-off-by: Alexander van Heukelum <heukelum@fastmail.fm>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/e820_32.c
arch/x86/kernel/setup_32.c