From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) by mx.groups.io with SMTP id smtpd.web10.111634.1674847283782425620 for ; Fri, 27 Jan 2023 11:21:23 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@google.com header.s=20210112 header.b=dUQIZE1o; spf=pass (domain: flex--dionnaglaze.bounces.google.com, ip: 209.85.210.201, mailfrom: 3mituywskbe8uzfeerxcrqvxffxcv.tfduvmvcvubt.xiflgj.zf@flex--dionnaglaze.bounces.google.com) Received: by mail-pf1-f201.google.com with SMTP id cr14-20020a056a000f0e00b0058da951c487so2767937pfb.0 for ; Fri, 27 Jan 2023 11:21:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:from:to:cc:subject :date:message-id:reply-to; bh=/VQRUDEeIgK6kdkaH35BK3IGjDY1IHGTQ++agx4tzxM=; b=dUQIZE1oopy2rX0IS8k4I1kRP8jNgI1uU+YAVeyIZ2iDR0sMrIeCJ60Ap5vqiPrTKv HNPh45hmEzwgDEE2OHDYaNIZvXQF/TCV0pTge9S6MVThWddPrfbqIz5I1fbFwAsLi4Qr mgc2QmSsEW6SUErL9fTxoAI7TIxU+6nopSffIUhcwb7CSHUlXDGtG2s4BWbKojKMsdCG g7iggpuhbSz7enNc0IxgRHn0cAwZIgIC7C+VbhXOl1jRl4vMGyGc/LjKYFCoiTO5Inyi VkMv4SMTTPTt8sm66vTWD+2Sh9l93WW2cILtTznw61maxXmKXqou5cOShQOz2VXkjkRV NGmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=/VQRUDEeIgK6kdkaH35BK3IGjDY1IHGTQ++agx4tzxM=; b=u/YLxRewJgSITsFGF16YzkiYhmtjETVuaQsKnY0ZOyQ96h1A/vyAW2sN/8XdFwmTnA Cp6UDwre3pR4nJTBTpw58FkyCMVNMUSIqvWXxItzEA3Rl7y3OZCWquGQLlW8ePEo08LU LDLjPeIVP9KZkQnqaLb61cqQfjptw+IfYstNOTmKv9rVuQX5noUVZDEi5yfSNNl/nwKw L8GIs4/bVkUfoZhPOLODT+y9LZ9xDGDK07+7V4PB1B9s64/qdYB81BaLhXxNlnvCV9nV S+EdaYUPIYGQSOSVHp2GC6AqvPMRmjH+m+5mO8VvLBDFOmAYD5CzOwRzPDzqwCkONf0f PwAQ== X-Gm-Message-State: AFqh2kog7KAtL/TgKKduifuD+2XAPAPcX0PKZ9iE/8y5dy+9og914Oi9 Tl5WJkhzJnN10ZyfdEVbZDI8HdlT3XfboJ3I42MemMZ89lz8FSGOOk0wnBVfrZ0QCqjgWWIzYQ6 f6hX6BPTN8kkLbvjA6mpLm/ua+66gxVjhgSR6vvAQAkxBgWO3pyzPqPv5KSfYL65aCNV1OQQX X-Google-Smtp-Source: AMrXdXuFrMgixPm8OQ85OgC+LAisido2bONle2ck6XajqLdHtX/UzWJuYtJXsM4WcRDWxxjPQXKGVz2wZjOs24laUA== X-Received: from dionnaglaze.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:2ee6]) (user=dionnaglaze job=sendgmr) by 2002:a05:6a00:1ad4:b0:586:ed25:a54b with SMTP id f20-20020a056a001ad400b00586ed25a54bmr4989555pfv.6.1674847282917; Fri, 27 Jan 2023 11:21:22 -0800 (PST) Date: Fri, 27 Jan 2023 19:21:16 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.39.1.456.gfc5497dd1b-goog Message-ID: <20230127192116.3577219-1-dionnaglaze@google.com> Subject: [PATCH] MdeModulePkg: Correct memory type in PrePiDxeCis.h From: "Dionna Glaze" To: devel@edk2.groups.io Cc: Dionna Glaze , Min M Xu , Jiewen Yao Content-Type: text/plain; charset="UTF-8" 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 Cc: Jiewen Yao Signed-off-by: Dionna Glaze --- MdeModulePkg/Include/Pi/PrePiDxeCis.h | 2 +- MdePkg/Include/Pi/PiDxeCis.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/MdeModulePkg/Include/Pi/PrePiDxeCis.h b/MdeModulePkg/Include/Pi/PrePiDxeCis.h index 113ac37924..9be71d2618 100644 --- a/MdeModulePkg/Include/Pi/PrePiDxeCis.h +++ b/MdeModulePkg/Include/Pi/PrePiDxeCis.h @@ -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 diff --git a/MdePkg/Include/Pi/PiDxeCis.h b/MdePkg/Include/Pi/PiDxeCis.h index 27b219aa3f..bb7fb2c38a 100644 --- a/MdePkg/Include/Pi/PiDxeCis.h +++ b/MdePkg/Include/Pi/PiDxeCis.h @@ -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; /// -- 2.39.1.456.gfc5497dd1b-goog