From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.32.61; helo=nam01-sn1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0061.outbound.protection.outlook.com [104.47.32.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 7755E21E781E3 for ; Tue, 3 Oct 2017 15:35:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector1-amd-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=qkeFvnzlyvQ2rdXUYyDPiBH4qSLkKIr5fEPqptBWqoQ=; b=e2GHDvEoioqQFhu0TUfm4P4IojtKpeUk9dl0+fLAiPsag6O69jPNLpoCsKQlHuBoPtdHNbuzr6Z0hs6ZYDG7+HQVDZdq7FqQhLIMJxm9jEj4L95OhrlQs8WKtvAvK7aSJwPZto6pOWJXjB2P1uadzkQOKbBJ7KbZuYHSPds24Kg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Tue, 3 Oct 2017 22:38:44 +0000 From: Leo Duran To: edk2-devel@lists.01.org Cc: Leo Duran , Laszlo Ersek , Jordan Justen , Marcel Apfelbaum , Ruiyu Ni Date: Tue, 3 Oct 2017 17:38:20 -0500 Message-Id: <1507070305-6727-5-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507070305-6727-1-git-send-email-leo.duran@amd.com> References: <1507070305-6727-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: MWHPR22CA0061.namprd22.prod.outlook.com (10.171.142.23) To CY4PR12MB1239.namprd12.prod.outlook.com (10.168.167.14) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42105957-e318-4e0b-33a0-08d50aaf8159 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CY4PR12MB1239; X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 3:UaRwKB8yGfOWgSpTxmmS+wYAEci5MR7pTFjrfI7YltcqPxOlQ/wR+58wN/HqeqU94HcGvyLrsjRSGLK0jm8vcaXb3PU52hnlBuD60FztARczli1PCUd9uxqa/gRnM5FPUGtpHW0YNPfy2SUqnAsw89bUk4tFtSi9Y32pj9kn9LYlOotVdWKlc7c4VX+6gzEsz+Mh2J/jBt939B3kwF72FqZ94/IEntCYan/mvo+8tINOfaHmjXyG39wUQfl859r+; 25:/oaDn2cQ3zSmvGRFiKIeeOocVvTlTQ3maOD8b2P6Spjy2gl+3twbtQHGtf3yLy7Qx3JwjeiwHG4UEqJgs5NblDJDDuO7IgdPTvy+dziXhaSjVI7VTUgoLM3ihom+bC2+Y38t40tWPfnuB/aEpzfPLZFoKeyHqNM75JshhV274dlQwE+XIgNbGapDA4RRhEyrWLHR6zXBkO4u1FG1fb6z5KQ1hUsVk700Y0WAwpwY/7rgeqVrCGH0ilqPetxMK7zZFQu3yMKj2FS7viArsx8X6e6Fk9+tmhuoVshQQETZE4kM+ze83zbUDXT8wQ1qE0lUi+t7sq02LX06efFxMzvI8Q==; 31:RYRci5LzeY0yuoI7I+g67+cRPRw87U/j3TfSnm6GU3pMaKL+/QiBcv/wOy9Lr1lnFIUkQnIuW2Tly9mCMUtjBLOaa2KAL4UcrQGxfQ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X-Exchange-Antispam-Report-Test: UriScan:(767451399110)(788757137089)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3002001)(100000703101)(100105400095)(6055026)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY4PR12MB1239; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY4PR12MB1239; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(39860400002)(376002)(199003)(189002)(305945005)(189998001)(6116002)(106356001)(53936002)(7736002)(2950100002)(76176999)(101416001)(4326008)(50986999)(105586002)(36756003)(33646002)(50226002)(5003940100001)(53416004)(68736007)(2906002)(2351001)(2361001)(3846002)(48376002)(6916009)(97736004)(8936002)(25786009)(50466002)(47776003)(5660300001)(16586007)(86362001)(8676002)(6666003)(54906003)(81156014)(81166006)(478600001)(6486002)(316002)(16526018)(66066001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR12MB1239; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: amd.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY4PR12MB1239; 23:F4DsQQRwCBOwmAe8D3SYSKvwlbjlDxTtQvMLB2BrC?= =?us-ascii?Q?UK0zEtP3c/ImHue8g3H1mIc943/HWPc86cvJtstFarTG9uggccJWi0Lq/LDM?= =?us-ascii?Q?fMwTsW7LV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DiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:Vg5uj16lATzMSg4xyp53FcQpke5t9unZ7ygpA4ZuYdGlMhoozQXG8/ZU2tKwDk3cH1cZpMw9rAdLvR6ko0ky0+z0YcNZutOAAOQ4yimj5ulhgET2ShFo/sLtMm28LP+W8zXTW3lKKhp+I0YGOOEAyWclKaUOrvhqwkZeJkE5dbavXr24huAsM5gguip9gWS3/umkaH2AS1MiYO0hICxziK+Wy0iznwIvlMBICgFVaJ3tYCYUe8BbMTV4doo1jUS3 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:44.2516 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [PATCH v2 4/9] OvmfPkg: SmmCpuFeaturesLib library. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 03 Oct 2017 22:35:25 -0000 Content-Type: text/plain Introduce a FixedPCD to replace an Intel-specific macro. PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. The new PCD allows for SMM support on AMD-based x86 systems, and it is declared here just to resolve the macro that will be replaced by the shared Library/SmmCpuFeaturesLib.h file. Cc: Laszlo Ersek Cc: Jordan Justen Cc: Marcel Apfelbaum Cc: Ruiyu Ni Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf index 31edf3a..f6c2c4c 100644 --- a/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf +++ b/OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf @@ -2,6 +2,8 @@ # The CPU specific programming for PiSmmCpuDxeSmm module. # # Copyright (c) 2009 - 2015, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
+# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the BSD License # which accompanies this distribution. The full text of the license may be found at @@ -36,3 +38,6 @@ PcdLib DebugLib SmmServicesTableLib + +[FixedPcd] + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset ## CONSUMES -- 2.7.4