From nobody Thu Dec 26 01:33:02 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 1507070327523194.6696418717787; Tue, 3 Oct 2017 15:38:47 -0700 (PDT) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 50FFB21E78204; Tue, 3 Oct 2017 15:35:23 -0700 (PDT) Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0045.outbound.protection.outlook.com [104.47.32.45]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 34BC221E781E3 for ; Tue, 3 Oct 2017 15:35:22 -0700 (PDT) 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:41 +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.32.45; helo=nam01-sn1-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=OaU0uy9QjG2qMsUWpJGZdxnTAUB7qFZSPqoq5cezzcg=; b=j7E2B+FpZ0H+N4LG7kin9Dapvq0tY1DdSgj3PUrbf9mWVV4+TxQyB68AqYJopPJSg2l2Zla+GPayoXyRoNiCqrnKd9gr/8xjLqJpC9G8E79egfx0mA1nUdPN13lY0V5r2Niwe8wvvW4/8o8tEL7LPpgwrCE2aTLBItUSVM3jSDg= 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:38:17 -0500 Message-Id: <1507070305-6727-2-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: 02386052-cefb-410c-cfc7-08d50aaf7fb0 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:b3sGr85A/a+R2+27K/gGP0jDZL+L8wR7ufS+AGkHOI++RhGUeMPL6IIKKsTPcgTRUxdy6fm61D4KJ/9RPrFsglku2syyA2gPjaA/uqyDCQUwlg6SeDq1dOoFFGTM3/3czdId+j9ckHSSuzbbJk7sv+pI61fYFoRhjMYCYPSL0uK9b+A7ge2NeA7ZkkdEnXAMHpBPhAu/PnizqPSMYbduI6U2eCm3g7wrVjRj7DFU6JyKg8qjxSUrXQFdtYelWol6; 25:vh2XOIb/HHnmfrV2ia/d6+qQXEeJ/HP68KtvPxxdiiu2gjpoVP0yKp/uIIdjsfyPQzOCYNuIXQmtB89qFb792biG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586Klic; 4:ClHAeENmlxB4KqY3oXe0n3pWLSPifYObQGLj01PCpyOUABItBqcFWcG3ioQR9925uevRDolC0v3UTE9fE8+XC7DLp8KgbW98gEYEmWdD9Vplpo9W5c2hgjMvTmuyjPYFgaLpicMXaeWJUlmm3ffFur+LANzUMqqB414KqKSDYZLLSUwgaKSHhrlpubNangSIlCXLIwB5KDMyo2T8PrKm8vtDOnX6FyyIoysCITnRzL4gIC4iIsbiRkyi/c6fBtrlS9Ey6Uw4OZkDpAlvSHUUqBsrENSgowi11SKZNrz3Xm0Oket8WwZvXUC2NRJyNCGSoZZHFCDfhZ3+a2tzdP5t6PlPvYSgxeklFK8Niwn1VBI= 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:opg2VwOm/qJtw2USUgwQzK/YiAqCKNsXRy4j5mZxL?= =?us-ascii?Q?SivOEbbS+5Ia/p07AxyjU7j9FgujjmP/T64ymRgwQ6bpBTdFQRwdmxHYH+Zz?= =?us-ascii?Q?a+kmt0YIKZIBvVQPgWZuvyaOTYqgdosa/o9wfJ7Cc5JO8hp7KtgrgJQA3pPy?= =?us-ascii?Q?Bk2LHqX/wPeY5IrHMtLMenqqBgwti4CH7yauqIm10zzdlDKVGKdozZPKtLpH?= =?us-ascii?Q?a0NsYNBK3kxFUw60PZh0wF8DK8kXRKmD6zjjK6flxxwEuKy3AIXbkn9/UYy1?= =?us-ascii?Q?R7Y8L+et3MgKZX3t+528cQHAFcPCW4RD+XPNFlW4lxcRB9u+fb3NLAEwIkNb?= =?us-ascii?Q?G8eobptAuljv2k2hY+XTbyy+ZT4HgioDqhF9IxoPwlfAI3FSBvZ9qKCvR9p9?= =?us-ascii?Q?e05in4sUbv/JlT562v+vY6h6+hkwh2c4R3Mfk2rjDEzr27x91sdufQeguttY?= =?us-ascii?Q?70Hv1Gi+X6O4iGpF/PZo/gIZ8RrOlp9p9C8BOjNS5S3hTMQqWuFxXg0U2S3X?= =?us-ascii?Q?aQZi/0M1EeLL4tQmuxNXN6qEO44xeUfexK145lojpm5YG2IEOr0TTGFy0ja1?= =?us-ascii?Q?Zd4Ef34WrGwPnyM+D+4fhNARXatfF4CTnqnK7euzLDRo7TKiR7lUD5RGN+C1?= =?us-ascii?Q?y/qFyF585BOv/J3f4l1r7ebihs8vN8JNDpd3MFY0wDZ7D9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O9QizqsJPYKxtesQfjTpWORCPiHQR8pTkzYGL4BaDTHAA==; 24:UQEVR7pGCgAwulcefYCHCNwWDhSwwEHGGr9odBbndbDwFaNEPOtfrE5jL5KVQdJ1LH4J975UQZ7aeECjUJvJjnLGXaUDalYl3YEO/6rstU0=; 7:hZjdp90RYIFKxO4xvjZ0RL5AzqaxgAL6pwRm5rI/kFzjHMNGMMsH0MFTla1wHwZYFGvPRbRwBr67zV7xrJCfrqcLnWeUbuerqrgBaWazgM9T40a3ytmsVy9zbdcn9CR2ZrLy2vVtyw7E92LsCokNbZju33WFsGBnOqoHf44XJddMwEM4yMZqfYDtNR4QaczHQ9jwLSXJFNmfjwkt59nsrT8KJXsxBYJ0wmQyc1atelI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:RI7Tb1xCw6Jum47XfNSXZ6kF+/YSSwNNu4gfyeU9b0x+GdI3zrIGvpnSuXFJji8F+v5cuhLz49/XVpVq8ZJNCqVyR6xKDfdE1fliZ04cJn+pGm/Mu6hduzw4Fy0g79mDh52qMBNQpBp6Jk82I/hieZvmMuH/Mp1yHOphAG/Lm0QHaDmY+JUxsQinkl0c6R2h8/raleE6iYNd7bK2QweEqvEd4luo//S74UBoch0O7tgW1WfVvv/P/9L5fGXkrVE2 X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:41.4079 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY4PR12MB1239 Subject: [edk2] [PATCH v2 1/9] UefiCpuPkg: UefiCpuPkg.dec 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: Ruiyu Ni , Jordan Justen , Liming Gao , Jiewen Yao , Michael D Kinney 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" Introduce a couple of FixedPCDs to replace Intel-specific macros. The new PCDs will allow SMM support on AMD-based x86 systems. 1) PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. 2) PcdCpuSmmPSDOffset - Processor SMM Descriptor Offset in SMRAM. Cc: Jiewen Yao Cc: Ruiyu Ni Cc: Michael D Kinney Cc: Jordan Justen Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Leo Duran --- UefiCpuPkg/UefiCpuPkg.dec | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/UefiCpuPkg/UefiCpuPkg.dec b/UefiCpuPkg/UefiCpuPkg.dec index 3bd8740..c92c56e 100644 --- a/UefiCpuPkg/UefiCpuPkg.dec +++ b/UefiCpuPkg/UefiCpuPkg.dec @@ -2,6 +2,7 @@ # This Package provides UEFI compatible CPU modules and libraries. # # Copyright (c) 2007 - 2017, Intel Corporation. All rights reserved.
+# Copyright (c) 2017, AMD Incorporated. All rights reserved.
# # This program and the accompanying materials are licensed and made availa= ble under # the terms and conditions of the BSD License which accompanies this distr= ibution. @@ -204,6 +205,14 @@ # @Prompt If CPU features will be initialized during S3 resume. gUefiCpuPkgTokenSpaceGuid.PcdCpuFeaturesInitOnS3Resume|FALSE|BOOLEAN|0x0= 000001D =20 + ## Specifies the Offset of SMRAM Save State Map from SMBASE. + # @Prompt SMRAM Save State Map Offset. + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSmramSaveStateMapOffset|0xFC00|UINT16= |0x32132113 + + ## Specifies the PROCESSOR SMM DESCRIPTOR Offset in SMRAM. + # @Prompt SMRAM PSD Offset. + gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmPSDOffset|0xFB00|UINT16|0x32132114 + [PcdsFixedAtBuild, PcdsPatchableInModule, PcdsDynamic, PcdsDynamicEx] ## Specifies max supported number of Logical Processors. # @Prompt Configure max supported number of Logical Processors --=20 2.7.4 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel