summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PeilessStartupLib/Hob.c
diff options
context:
space:
mode:
Diffstat (limited to 'OvmfPkg/Library/PeilessStartupLib/Hob.c')
-rw-r--r--OvmfPkg/Library/PeilessStartupLib/Hob.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/OvmfPkg/Library/PeilessStartupLib/Hob.c b/OvmfPkg/Library/PeilessStartupLib/Hob.c
index 3c544ca1f6..5fc84a8090 100644
--- a/OvmfPkg/Library/PeilessStartupLib/Hob.c
+++ b/OvmfPkg/Library/PeilessStartupLib/Hob.c
@@ -22,6 +22,8 @@
#include <OvmfPlatforms.h>
#include "PeilessStartupInternal.h"
+#define EFI_RESOURCE_MEMORY_UNACCEPTED 7
+
/**
* Construct the HobList in SEC phase.
*
@@ -90,7 +92,7 @@ ConstructFwHobList (
//
while (!END_OF_HOB_LIST (Hob)) {
if (Hob.Header->HobType == EFI_HOB_TYPE_RESOURCE_DESCRIPTOR) {
- if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_SYSTEM_MEMORY) {
+ if (Hob.ResourceDescriptor->ResourceType == EFI_RESOURCE_MEMORY_UNACCEPTED) {
PhysicalEnd = Hob.ResourceDescriptor->PhysicalStart + Hob.ResourceDescriptor->ResourceLength;
ResourceLength = Hob.ResourceDescriptor->ResourceLength;