MdeModulePkg DxeCore: Add OEM reserved memory type support.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Star Zeng <star.zeng@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@17460 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -544,7 +544,7 @@ CoreAddMemoryDescriptor (
|
||||
return;
|
||||
}
|
||||
|
||||
if (Type >= EfiMaxMemoryType && Type <= 0x7fffffff) {
|
||||
if (Type >= EfiMaxMemoryType && Type < MEMORY_TYPE_OEM_RESERVED_MIN) {
|
||||
return;
|
||||
}
|
||||
CoreAcquireMemoryLock ();
|
||||
@@ -1203,7 +1203,7 @@ CoreInternalAllocatePages (
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
||||
if ((MemoryType >= EfiMaxMemoryType && MemoryType <= 0x7fffffff) ||
|
||||
if ((MemoryType >= EfiMaxMemoryType && MemoryType < MEMORY_TYPE_OEM_RESERVED_MIN) ||
|
||||
(MemoryType == EfiConventionalMemory) || (MemoryType == EfiPersistentMemory)) {
|
||||
return EFI_INVALID_PARAMETER;
|
||||
}
|
||||
|
Reference in New Issue
Block a user