From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mx.groups.io with SMTP id smtpd.web08.5357.1624006981562574563 for ; Fri, 18 Jun 2021 02:03:01 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ahSaNert; spf=pass (domain: gmail.com, ip: 209.85.210.174, mailfrom: kuqin12@gmail.com) Received: by mail-pf1-f174.google.com with SMTP id y15so1382585pfl.4 for ; Fri, 18 Jun 2021 02:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=A661j1/wV9ifXL0FuvjrJoiJU3CtkCp6x6TizEK+4jc=; b=ahSaNertcyW7v+rlMHx0btFGM/aaDfVvpH8bwY/pZr4g0v74u3gP+/KUNuwJgP7UXk UD8NSzc5qmiikJrZWaOpwVkNH/696EV7fFoDOAsYis+vDDYtGa4fiS7wGDDcIKHiKmfi NplbKuJEhi6W4voVuviQQCaJz497u+W96JX1qCsI2Lm2PExMNo1cZHamCnaC0wtiNULD VBuMthBH6ujrddO8bsThyTV8aMD8vaCMbdRv7uhG4h3+PgiiHeGteRVmypbcgatNAQud BIfgPyB+JOuI5l++OrHEmEVVqTraMB+FfkI2B8BtgsLoUm5Qw22Ff6JoX2aTGfR5iaMb d5HA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=A661j1/wV9ifXL0FuvjrJoiJU3CtkCp6x6TizEK+4jc=; b=NPmdlKu0dfwrh0MzdP+YUhS4/vmjrnv1BB141judLkOp/l5G9y8ihwuAX/TeAelbU0 SSRcVVL896t76Lg/X1WNlVP2+954nygFEPCiF/woQHxBociZlNQbi0dcwTVzZvMTlgi1 j5jjHs6Ls/tkwcBkCwiX+RDCm3AZwmMNtNiEX4b8nn0Td5G/H2xc4rVtAzw4/Rhp6Ham QWoI8L1z3DtH6oKmaD8FNDSjhnUHcZtIPuTb+g94Imm+BVxtp2FX5R0kFmRqP+yr5/KV 4HkoNAgLm2EurJuDTF4MoyZ/i7W9mj/Arss/8KXU/KYfUFzl54VdzwmrmqdNvGGyfIOH hylQ== X-Gm-Message-State: AOAM5317DKUUJS3nI1UK8Abr8w1dwxCzMrglkT0KV7cyhQ1JL1Cf1g8f KCnI4sZKryBy5xu/BPY3OOKpq+frQ/wYOw== X-Google-Smtp-Source: ABdhPJzMjvkZXTEuvY34d+KYumKePelPf9LaguKJwinXwdMb+6ceLtXnkRhJT/2oAS4AsdVRItJ50Q== X-Received: by 2002:a05:6a00:24cc:b029:2fe:ec4b:d042 with SMTP id d12-20020a056a0024ccb02902feec4bd042mr4284020pfv.56.1624006980928; Fri, 18 Jun 2021 02:03:00 -0700 (PDT) Return-Path: Received: from localhost.localdomain ([50.35.88.161]) by smtp.gmail.com with ESMTPSA id b1sm7702512pgb.91.2021.06.18.02.03.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 02:03:00 -0700 (PDT) From: "Kun Qin" To: devel@edk2.groups.io Cc: Michael D Kinney , Liming Gao , Zhiguang Liu Subject: [PATCH v2 6/6] MdePkg: MmCommunication: Extend MessageLength field size to UINT64 Date: Fri, 18 Jun 2021 02:02:43 -0700 Message-Id: <20210618090243.2517-7-kuqin12@gmail.com> X-Mailer: git-send-email 2.31.1.windows.1 In-Reply-To: <20210618090243.2517-1-kuqin12@gmail.com> References: <20210618090243.2517-1-kuqin12@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3398 REF: https://bugzilla.tianocore.org/show_bug.cgi?id=3430 The MessageLength field of EFI_MM_COMMUNICATE_HEADER, as a generic definition, could be used for both PEI and DXE MM communication. On a system that supports PEI MM launch, but operates PEI in 32bit mode and MM foundation in 64bit, the current EFI_MM_COMMUNICATE_HEADER definition will cause structure parse error due to UINTN used. This change removes the architecture dependent field by extending this field definition as UINT64. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Signed-off-by: Kun Qin --- Notes: v2: - Removed comments with "BZ" MdePkg/Include/Protocol/MmCommunication.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include/Protocol/MmCommunication.h b/MdePkg/Include/Protocol/MmCommunication.h index 34c3e2b5a9e3..d42b00bbeb7c 100644 --- a/MdePkg/Include/Protocol/MmCommunication.h +++ b/MdePkg/Include/Protocol/MmCommunication.h @@ -26,7 +26,7 @@ typedef struct { /// /// Describes the size of Data (in bytes) and does not include the size of the header. /// - UINTN MessageLength; + UINT64 MessageLength; /// /// Designates an array of bytes that is MessageLength in size. /// -- 2.31.1.windows.1