[PATCH] x86_64: Introduce e820_all_mapped
authorArjan van de Ven <arjan@linux.intel.com>
Fri, 7 Apr 2006 17:49:27 +0000 (19:49 +0200)
committerLinus Torvalds <torvalds@g5.osdl.org>
Sun, 9 Apr 2006 18:53:50 +0000 (11:53 -0700)
commit952223683ec989e86328c24808fdb962c4dbeb0a
tree0c7473d4469cba883bf880bbaa04900960806742
parenteee5a9fa63c97366cdea6ab3aa2ed9e3601812d0
[PATCH] x86_64: Introduce e820_all_mapped

Introduce a e820_all_mapped() function which checks if the entire range
<start,end> is mapped with type.

This is done by moving the local start variable to the end of each
known-good region; if at the end of the function the start address is
still before end, there must be a part that's not of the correct type;
otherwise it's a good region.

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Andi Kleen <ak@suse.de>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
arch/i386/kernel/setup.c
arch/x86_64/kernel/e820.c
include/asm-i386/e820.h
include/asm-x86_64/e820.h