MdeModulePkg: Correct memory type in PrePiDxeCis.h

The enumeration in MdePkg/Include/Pi/PiDxeCis.h has a duplicated entry,
so the 8th position in the list doesn't count as index 7. The value
EfiGcdMemoryTypeUnaccepted will have when added before
EfiGcdMemoryTypeMaximum will be 6.

Cc: Min M Xu <min.m.xu@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>

Signed-off-by: Dionna Glaze <dionnaglaze@google.com>
Reviewed-by: Min Xu <min.m.xu@intel.com>
Reviewed-by: Liming Gao <gaoliming@byosoft.com.cn>
This commit is contained in:
Dionna Glaze via groups.io 2023-01-27 19:21:16 +00:00 committed by mergify[bot]
parent bb13762548
commit 4b384c21ad
2 changed files with 2 additions and 2 deletions

View File

@ -20,6 +20,6 @@ SPDX-License-Identifier: BSD-2-Clause-Patent
/// After this memory region is defined in PI spec, it should be a value in
/// EFI_GCD_MEMORY_TYPE in PiDxeCis.h.
///
#define EFI_GCD_MEMORY_TYPE_UNACCEPTED 7
#define EFI_GCD_MEMORY_TYPE_UNACCEPTED 6
#endif

View File

@ -64,7 +64,7 @@ typedef enum {
// /// EfiGcdMemoryTypeUnaccepted is defined in PrePiDxeCis.h because it has not been
// /// defined in PI spec.
// EfiGcdMemoryTypeUnaccepted,
EfiGcdMemoryTypeMaximum = 8
EfiGcdMemoryTypeMaximum = 7
} EFI_GCD_MEMORY_TYPE;
///