From 1d7258fa5312085e61de85fd3c6f60b761ad8653 Mon Sep 17 00:00:00 2001 From: Scott Duplichan Date: Tue, 18 Aug 2015 16:08:22 +0000 Subject: [PATCH] CorebootModulePkg:Removing EFI_RESOURCE_ATTRIBUTE_TESTED Remove EFI_RESOURCE_ATTRIBUTE_TESTED when reporting lower 640KB memory so that the coreboot header is not erased before being processed by CbParseMemoryInfo. This change is needed for compatibility with SVN revision 18146. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Scott Duplichan Reviewed-by: Prince Agyeman git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18234 6f19259b-4bc3-4df7-8a09-765794883524 --- CorebootModulePkg/CbSupportPei/CbSupportPei.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CorebootModulePkg/CbSupportPei/CbSupportPei.c b/CorebootModulePkg/CbSupportPei/CbSupportPei.c index 46b08d2f08..e58aa2d03d 100755 --- a/CorebootModulePkg/CbSupportPei/CbSupportPei.c +++ b/CorebootModulePkg/CbSupportPei/CbSupportPei.c @@ -186,12 +186,16 @@ CbPeiEntryPoint ( ASSERT (LowMemorySize > 0); + // + // Report lower 640KB of RAM. Attribute EFI_RESOURCE_ATTRIBUTE_TESTED + // is intentionally omitted to prevent erasing of the coreboot header + // record before it is processed by CbParseMemoryInfo. + // BuildResourceDescriptorHob ( EFI_RESOURCE_SYSTEM_MEMORY, ( EFI_RESOURCE_ATTRIBUTE_PRESENT | EFI_RESOURCE_ATTRIBUTE_INITIALIZED | - EFI_RESOURCE_ATTRIBUTE_TESTED | EFI_RESOURCE_ATTRIBUTE_UNCACHEABLE | EFI_RESOURCE_ATTRIBUTE_WRITE_COMBINEABLE | EFI_RESOURCE_ATTRIBUTE_WRITE_THROUGH_CACHEABLE |