From nobody Thu Dec 26 01:30:25 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=fail; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1507068550869862.4027783012427; Tue, 3 Oct 2017 15:09:10 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 518AC21F303F9; Tue, 3 Oct 2017 15:05:36 -0700 (PDT) Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0044.outbound.protection.outlook.com [104.47.37.44]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 0946C21F303F9 for ; Tue, 3 Oct 2017 15:05:34 -0700 (PDT) Received: from leduran-Precision-WorkStation-T5400.amd.com (165.204.77.1) by MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) 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:08:52 +0000 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=helo; client-ip=104.47.37.44; helo=nam02-cy1-obe.outbound.protection.outlook.com; envelope-from=leo.duran@amd.com; receiver=edk2-devel@lists.01.org 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=dGNKSGaUJcR1VbbAKZTaDFLZstyqxpE7Cf/DbJU90cA=; b=jvTcuYYj4kMmo6s5WislmqHI+LSkrr+Xc8cu9PoIX+J73wP8TEDkymrqAGoim0/TAp8WrLIOkT2Ul5qO3OCnYBp5tU88DaTXFRpc5GYGsIOhxNTOzfvImk9zsNMxhGaDBnIyzTZKFeG9ndBEZMbtIFRVR6VWU0OTp75l9ipfQfk= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leo.duran@amd.com; From: Leo Duran To: edk2-devel@lists.01.org Date: Tue, 3 Oct 2017 17:08:28 -0500 Message-Id: <1507068509-5148-9-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507068509-5148-1-git-send-email-leo.duran@amd.com> References: <1507068509-5148-1-git-send-email-leo.duran@amd.com> MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: BN6PR17CA0020.namprd17.prod.outlook.com (10.173.147.30) To MWHPR12MB1246.namprd12.prod.outlook.com (10.169.204.150) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 69f91138-2210-426e-efaf-08d50aab5565 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR12MB1246; X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 3:kKKh2l/MQQggXP5FslolUr98+a083hmM/UXEtBu8DrRh64DPXPrs40R1crn3EdcufP1jyj1GuY8k2aZIufEmhuf3pDwTZwtR6Co3omROXyzYuyb5wySPASmvBmKx2XCJVCZE9O7Vpf9PjBoKsH2MK+xqIYMVnoQC2N9+uSAmEwlf7jzomneFzWq1QXMwSj8AHQc7wM0T2gQ6d7LoqGKmupkKFx5iNjvxrAisWKLjclIj95Jk1oDT39vrsdkdKzMs; 25:PmmwGKG7nOJQpkwbYJbuE9fgQ06Qa/xQzFnuCqHnGmalV4J/iklb/XO9/QHZ7BnmOZaYUO20Bpq1hXTkMqptcfnYEQ8o75f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E9G0+YOUdufhFr5gTXu8aGxQYg215xIkTbo+9F+E14//FvV6ez9Wgjxdjqn4WnXwuDjiqOKZyXFXNfHUZX/UuL66nDFigxTgOXj0i13mXVZFygn8x6X9A9g2+E+OhWUI6KYuT+mXjK97GDDk6KJokkdKLeQ49CNogL0wewp+q0NeeX+bNWSk+MD2SqYYBXNwZRd5V3GJ4kGUYEI12iFgeQZG0YVN/UtWoQaPwkDGm+J692VYu2UWF8itzkFKlrChgOX0igygGjNCbLyFIYp3rC92IAkUo1vpWJKPRHVFu9F/7PkLiJxTqec1wrvmvPHPt48eBNlR33RgKnE9AfturWQKfKEkbQX3DA0= 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)(20161123564025)(20161123562025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR12MB1246; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR12MB1246; X-Forefront-PRVS: 044968D9E1 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(6029001)(376002)(346002)(39860400002)(199003)(189002)(48376002)(5003940100001)(47776003)(76176999)(50986999)(68736007)(66066001)(25786009)(101416001)(6486002)(86362001)(33646002)(478600001)(2950100002)(16526018)(5660300001)(3846002)(6916009)(50466002)(7736002)(6116002)(2906002)(6666003)(105586002)(2351001)(53936002)(81166006)(106356001)(97736004)(4326008)(16586007)(54906003)(36756003)(8936002)(305945005)(81156014)(189998001)(2361001)(53416004)(50226002)(316002)(8676002)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR12MB1246; 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; MWHPR12MB1246; 23:1NSRZVDW9wPY8kPSYI97TkKMSoRtRX/+PmZ2yDDLK?= =?us-ascii?Q?lS1ky1RC0y41gnapuocbHS4otZWCS+l3zenaWOSeSnYcyBqX9J2noRRTQ+GS?= =?us-ascii?Q?9Fy2hF9C0YynyVDF62lGQJskymabmVNDcKjyBIhIq671ivs0knNu59JxEiQo?= =?us-ascii?Q?GbueBUIc6xwmczPh5NQ4ScAZg53OifecV/9RsLCRjI00FV7WiuiozuAzgIRg?= =?us-ascii?Q?nRzDIff9pgJBguhfA2PNorIpNYe3ywbFLE4OOJ1JSuB6gRldLa12tvWwi5ac?= =?us-ascii?Q?VgihbrKeUIhS2XvXInLXEVpmZn9G/IzdQXLqJfAWIZxp+5wN4Q8B/10mLuR6?= =?us-ascii?Q?vqsMBjDZjZTi85wDELa4AwwAfyPGPgJKsekQW9jskS7GfPTofOtCHUsyWTKV?= =?us-ascii?Q?FWmgL7hOUV+AZK4Pgnk9WR2tLem8uUP2CW5K096ClyYAY4hryc7IfOvtEs8j?= =?us-ascii?Q?2fRaLaHCkek/uaFidZT50c6YmOb1yZqKItCzlBt2qjhEHJl/iluxkDzgrbv0?= =?us-ascii?Q?FBfetnxoBO1i9Cc6YNtp9DVMVrgLSOQMGgtBpFHMF4cVxT4hb/xMKy1Te78Z?= =?us-ascii?Q?v182lPkmu6dZtQoixX+eTfC51yB++JO8vgyL1MDBNYKt/B5i6mITKErwprNQ?= =?us-ascii?Q?6xVVcZhdJ272Frk6iOMlcLdBOtL6NiP0LIrZ4HXMHYYeg34rC6DZPltx03cL?= =?us-ascii?Q?II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FsPfa3TPCYE1cKNa19pK5Ov3D4wPpEfFRNPhUZfVOEuXW31PLPT/Y7emVdJX8vL6glSuIEYkIgrm0Rg==; 24:KvajK20cmMpZmoqdqMTkAyACvehrFfOXJEluaqKk0uRxwYyDYWFvhQY1Z+MEVNsqB7fh0huk8aFbgIqT23ulq8n7M3g+JESQK4z0PhI/QKU=; 7:HFY+1AfnI/nTkjlh6Ro5RqLcb4EArVCFfUR/w///0HglInDaRfOVYx3Wkr/Cil7rVGrzanys944vioMWHg7LltR8vgyYAo6LBEBb2Z9CK2rXiT0qR/fl1AEXYKXQ2S5kcZ/UWxnd+tz4MCc+6LYPDrRRlW2oNT5lK95k7eIOdgMuJRNKEP0OWprgdXcnwl/38yXWVhARUIDQtoSTQJp5q6iTaT1xLN4sM/xlGkwAquI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; MWHPR12MB1246; 20:kHBj3Z+2IICMFxnamu5OFQxnzk9wodzZLrciuKO65cG9Lq+DUZPK+f/S73dCv5TtpRQHaR+7x8+KvXPaXLxJUTkMJGP/HcstlJYjAhQROrBl/gAetIi5w+KbjyiMizvD2+kQI+ALJbOmB4Y2Q3wr9PczD2k9EIna0nv7KawGsLDGhkydl1zvlflPfjTNe0QL1E965/dPYEE6PaRJS72CdZBW3Dy7O5rt9i4/VXBLh/exmpfvvUsHw8K1I5Cuh2+j X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:08:52.2784 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR12MB1246 Subject: [edk2] [PATCH 8/9] UefiCpuPkg: PiSmmCpuDxeSmm driver. 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: , Cc: Jordan Justen , Jeff Fan , Liming Gao Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZohoMail: RDKM_2 RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" Add a FixedPCD to replace an Intel-specific hard-coded macro. The new PCD allows SMM support on AMD-based x86 systems. PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. Cc: Jordan Justen Cc: Jeff Fan Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm | 4 +++- UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | 4 +++- 6 files changed, 18 insertions(+), 6 deletions(-) diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S b/UefiCpuPkg/PiSmmCp= uDxeSmm/Ia32/SmiEntry.S index 3243a91..25af6e7 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S @@ -1,6 +1,8 @@ #-------------------------------------------------------------------------= ----- # # Copyright (c) 2009 - 2017, 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 BS= D License # which accompanies this distribution. The full text of the license may b= e found at @@ -35,7 +37,7 @@ ASM_GLOBAL ASM_PFX(gSmiHandlerIdtr) # # Constants relating to PROCESSOR_SMM_DESCRIPTOR # -.equ DSC_OFFSET, 0xfb00 +.equ DSC_OFFSET, (FixedPcdGet16 (PcdCpuSmmPSDOffset)) .equ DSC_GDTPTR, 0x30 .equ DSC_GDTSIZ, 0x38 .equ DSC_CS, 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm b/UefiCpuPkg/PiSmm= CpuDxeSmm/Ia32/SmiEntry.asm index 8296f36..f526778 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 2009 - 2016, 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -29,7 +31,7 @@ MSR_EFER_XD EQU 0800h ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -DSC_OFFSET EQU 0fb00h +DSC_OFFSET EQU (FixedPcdGet16 (PcdCpuSmmPSDOffset)) DSC_GDTPTR EQU 30h DSC_GDTSIZ EQU 38h DSC_CS EQU 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm b/UefiCpuPkg/PiSm= mCpuDxeSmm/Ia32/SmiEntry.nasm index 4d2383f..9092dcc 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 2016, 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -25,7 +27,7 @@ ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -%define DSC_OFFSET 0xfb00 +%define DSC_OFFSET (FixedPcdGet16 (PcdCpuSmmPSDOffset)) %define DSC_GDTPTR 0x30 %define DSC_GDTSIZ 0x38 %define DSC_CS 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S b/UefiCpuPkg/PiSmmCpu= DxeSmm/X64/SmiEntry.S index 600d862..ebea477 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S @@ -1,6 +1,8 @@ #-------------------------------------------------------------------------= ----- # # Copyright (c) 2009 - 2016, 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 BS= D License # which accompanies this distribution. The full text of the license may b= e found at @@ -34,7 +36,7 @@ ASM_GLOBAL ASM_PFX(gSmiHandlerIdtr) # # Constants relating to PROCESSOR_SMM_DESCRIPTOR # -.equ DSC_OFFSET, 0xfb00 +.equ DSC_OFFSET, (FixedPcdGet16 (PcdCpuSmmPSDOffset)) .equ DSC_GDTPTR, 0x30 .equ DSC_GDTSIZ, 0x38 .equ DSC_CS, 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm b/UefiCpuPkg/PiSmmC= puDxeSmm/X64/SmiEntry.asm index c74f82a..ff46838 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 2009 - 2016, 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -39,7 +41,7 @@ MSR_EFER_XD EQU 0800h ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -DSC_OFFSET EQU 0fb00h +DSC_OFFSET EQU (FixedPcdGet16 (PcdCpuSmmPSDOffset)) DSC_GDTPTR EQU 30h DSC_GDTSIZ EQU 38h DSC_CS EQU 14 diff --git a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm b/UefiCpuPkg/PiSmm= CpuDxeSmm/X64/SmiEntry.nasm index c3c094f..f55da9b 100644 --- a/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm +++ b/UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm @@ -1,5 +1,7 @@ ;-------------------------------------------------------------------------= ----- ; ; Copyright (c) 2016, 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 BS= D License ; which accompanies this distribution. The full text of the license may b= e found at @@ -29,7 +31,7 @@ ; ; Constants relating to PROCESSOR_SMM_DESCRIPTOR ; -%define DSC_OFFSET 0xfb00 +%define DSC_OFFSET (FixedPcdGet16 (PcdCpuSmmPSDOffset)) %define DSC_GDTPTR 0x30 %define DSC_GDTSIZ 0x38 %define DSC_CS 14 --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel