x86: Dynamically increase early_res array size
authorYinghai Lu <yinghai@kernel.org>
Wed, 10 Feb 2010 09:20:17 +0000 (01:20 -0800)
committerH. Peter Anvin <hpa@zytor.com>
Thu, 11 Feb 2010 01:47:18 +0000 (17:47 -0800)
commit28b1c57d3c1f8df69c958f2ae7b9e4b67538ff4d
treef4893e9e715a73d32e1f1ed6f27c689cd730e35e
parent264ebb182e85f30aa473fa2189d5d5ea173ec3ab
x86: Dynamically increase early_res array size

Use early_res_count to track the num, and use find_e820 to get a new
buffer, then copy from the old to the new one.

Also, clear early_res to prevent later invalid usage.

-v2 _check_and_double_early_res should take new start

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
LKML-Reference: <1265793639-15071-14-git-send-email-yinghai@kernel.org>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/kernel/e820.c