From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web12.3950.1618541255333811076 for ; Thu, 15 Apr 2021 19:47:36 -0700 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: nathaniel.l.desimone@intel.com) IronPort-SDR: YbrUgcUWgIsvOF+aoM6+L3jB/j0FhBPh18JkGUaeZqa0wdzJ8kigwv+rS5Uj+UmecjnvI3d554 8bRo01az1qAQ== X-IronPort-AV: E=McAfee;i="6200,9189,9955"; a="175087281" X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="175087281" Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 19:47:33 -0700 IronPort-SDR: PC8xK7Tm+m/sXoCvuOzsLNI0aSkyFg9O+hRXBO9j6y8t5pYeAJYg1iZt3PMYMY7CP+UIg4fvGe aBzmgdj7fXVA== X-IronPort-AV: E=Sophos;i="5.82,226,1613462400"; d="scan'208";a="522579580" Received: from nldesimo-desk1.amr.corp.intel.com ([10.209.106.94]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Apr 2021 19:47:33 -0700 From: "Nate DeSimone" To: devel@edk2.groups.io Cc: Chasel Chiu , Liming Gao , Eric Dong , Michael Kubacki , Isaac Oram Subject: [edk2-platforms] [PATCH v1] MinPlatformPkg: Add missing macro for LargeVariableLib Date: Thu, 15 Apr 2021 19:47:17 -0700 Message-Id: <20210416024717.717-1-nathaniel.l.desimone@intel.com> X-Mailer: git-send-email 2.27.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit With all the refactoring done during code review, I misplaced the MAX_VARIABLE_NAME_PAD_SIZE macro. This patch adds it back. Cc: Chasel Chiu Cc: Liming Gao Cc: Eric Dong Cc: Michael Kubacki Cc: Isaac Oram Signed-off-by: Nate DeSimone --- .../Library/BaseLargeVariableLib/LargeVariableCommon.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Platform/Intel/MinPlatformPkg/Library/BaseLargeVariableLib/LargeVariableCommon.h b/Platform/Intel/MinPlatformPkg/Library/BaseLargeVariableLib/LargeVariableCommon.h index b6554764b7..d6db9f6c66 100644 --- a/Platform/Intel/MinPlatformPkg/Library/BaseLargeVariableLib/LargeVariableCommon.h +++ b/Platform/Intel/MinPlatformPkg/Library/BaseLargeVariableLib/LargeVariableCommon.h @@ -44,4 +44,11 @@ // #define MAX_VARIABLE_SPLIT_DIGITS 6 +// +// On some architectures (Ex. Itanium) there a requirement to +// maintain DWORD alignment of the variable data. Hence the +// maximum possible padding size is 3. +// +#define MAX_VARIABLE_NAME_PAD_SIZE 3 + #endif // _LARGE_VARIABLE_COMMON_H_ -- 2.27.0.windows.1