From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.15979.1677651005289052489 for ; Tue, 28 Feb 2023 22:10:08 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=f4WrsEL1; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: yuanhao.xie@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1677651008; x=1709187008; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=wlfSQq/H/KzQ5YIld2IO4rJZbajotN716URMEjbsPeM=; b=f4WrsEL1dywELHbxgtG/tFS8vkbJwVMWRnNEt0B+5j4QmlbIsdc8W3kK vAhLYI9hRkQDrO6ff7tRDbEsHP3C5i+zkN4Yetx3gvpOGrDkuUNBXOp9y ezmdQPyt9lYD5PKfuJyK+fqKeJzWdRIhXM6CH7sbzaT+WlELtr1ugdMiq Dn+jBAxFuUcRF6NcxDuHsCIusav0s9SJII6Po5LPvdGogKY7/OCjwV5CZ f7Cs+8kvH1ZiC0wpaPtP3CnDjV/I+r2FlCaUcjuhtSwgV6abaA8eLuk7o jBVRVDeokpDsjLyrfr2mjM9KHBszb1sNi0B2CoktNWlUpPV/gXzw5eAl/ Q==; X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="420590635" X-IronPort-AV: E=Sophos;i="5.98,224,1673942400"; d="scan'208";a="420590635" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2023 22:10:08 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10635"; a="1003533714" X-IronPort-AV: E=Sophos;i="5.98,224,1673942400"; d="scan'208";a="1003533714" Received: from shwdeopenlab705.ccr.corp.intel.com ([10.239.55.55]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 28 Feb 2023 22:10:06 -0800 From: "Yuanhao Xie" To: devel@edk2.groups.io Cc: Guo Dong , Ray Ni , Sean Rhodes , James Lu , Gua Guo Subject: [Patch V4 1/8] UefiCpuPkg: Check AP_SAFE_STACK_SIZE during build time. Date: Wed, 1 Mar 2023 14:09:47 +0800 Message-Id: <20230301060954.1464-2-yuanhao.xie@intel.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20230301060954.1464-1-yuanhao.xie@intel.com> References: <20230301060954.1464-1-yuanhao.xie@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Check if AP_SAFE_STACK_SIZE is aligned with CPU_STACK_ALIGNMENT during build time. No functional or structural changes. Cc: Guo Dong Cc: Ray Ni Cc: Sean Rhodes Cc: James Lu Cc: Gua Guo Signed-off-by: Yuanhao Xie --- UefiCpuPkg/Library/MpInitLib/MpLib.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/MpInitLib/MpLib.h b/UefiCpuPkg/Library/MpInitLib/MpLib.h index f5086e497e..a73a89d2a5 100644 --- a/UefiCpuPkg/Library/MpInitLib/MpLib.h +++ b/UefiCpuPkg/Library/MpInitLib/MpLib.h @@ -1,7 +1,7 @@ /** @file Common header file for MP Initialize Library. - Copyright (c) 2016 - 2022, Intel Corporation. All rights reserved.
+ Copyright (c) 2016 - 2023, Intel Corporation. All rights reserved.
Copyright (c) 2020, AMD Inc. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -311,6 +311,7 @@ typedef struct { #define AP_SAFE_STACK_SIZE 128 #define AP_RESET_STACK_SIZE AP_SAFE_STACK_SIZE +STATIC_ASSERT ((AP_SAFE_STACK_SIZE & (CPU_STACK_ALIGNMENT - 1)) == 0, "AP_SAFE_STACK_SIZE is not aligned with CPU_STACK_ALIGNMENT"); #pragma pack(1) -- 2.36.1.windows.1