Implement wipe_unused_memory for x86

The implementation adds the e820 regions marked as RAM, removes the ones that
aren't, manually removes an area that is incorrectly left out of the e820 map,
and then uses the the protect_u_boot_memory function to protect the generic
u-boot memory regions.

BUG=chrome-os-partner:6194
BUG=chrome-os-partner:6195
TEST=Boot on Stumpy. Manually check the wipe areas reported during boot.

Change-Id: Icaf7b9167282f9ab418d98491aa0493f020e287d
Signed-off-by: Gabe Black <gabeblack@google.com>
Reviewed-on: http://gerrit.chromium.org/gerrit/10007
Reviewed-by: Stefan Reinauer <reinauer@google.com>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
1 file changed
tree: ab5345fb081e4b7920969e63bf13326037335889
  1. board/
  2. common/
  3. include/
  4. lib/