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.86; 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-sn1nam01on0086.outbound.protection.outlook.com [104.47.32.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 21A6721E781EB for ; Tue, 3 Oct 2017 15:35:27 -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=0kz3DqMhFwKXXJfyuSizlUxS3U7uzpkpyeH2O5kN2fs=; b=Jys7JXp83Xm8DO6n4azNCqFIyECuPB3DQZ3/cOdYtq4V5/9DFlZVrLE1yoaw50Shpk2MgCqmVxQzbeHEpjLanAvd16/etuSjOrQJGwPEYqHgi1oYE1lHzGaqTIbiG3wXY3oXHv/LUJjlEgwbzxdbO6jlZeXvxuGNvbcH0FN2TzA= 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:45 +0000 From: Leo Duran To: edk2-devel@lists.01.org Cc: Leo Duran , Jiewen Yao , Ruiyu Ni , Michael D Kinney , Jordan Justen , Liming Gao Date: Tue, 3 Oct 2017 17:38:22 -0500 Message-Id: <1507070305-6727-7-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: 919c9ac2-fa41-4932-771b-08d50aaf825f 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:En5Fw8wll7/MUsvY3oInrsSLsgCf/auwUkIhgoC4QV1f9DRK0AzjEgXwe0vWQfhe6GtmY3YVSFCct2hUB3JGpQKunRnBrCZqnRrNP+homfiJ0UoxSHaDFp+ZMi+P/lnP2ZJuJkDwyftt+b4dJ/rwOkka+kdZrXuLZPXPnkx990Tyn6aP7drSvHxokU8V+54jbHBxPTiZN2dlwDPfFNytMr8mB5QlHhW0UMEBI7/zm/NtRShyaXYSzibjo6Syo9ko; 25:TIjWTbHZSOSGDclye1P4MbAAGaW5o09AgzfvwFii56BKzZfmPYICJ8SR6QW19Z46/41GVX0K34S9zQ2ImS4pL+joXd8KwY1XQlXeuZPV8YOR8Nt4bfMCLwclnopynERTh+Yd8Di01HAOu0IB48ipSEkn4ac7zuWlGB1z1uSJlgxeSL76X6E7GiZR3EtH9wyQu7aKHpAZONqcvh0Xu5r7bCxYcsURVX+iYHXnlFssvK7gkoF21NltyKvfV+lUq1kqKLT6cA/zXQ+53vnIuwpLvkQzjUeOIn+7OQEAtLy2AtHpQITJ8Wj+M8hgbMwPqcyUjvh4gev/b6xi8fypCJLP3g==; 31:3TVO/Has4K+4nU9TLr4HlBbY9zqp0/AkDPAaQeJTUmOGBLZd0Z0GphXS9ib81hF1cTv3O2OEl0TqDVYzPK1cRIciUXGdL1kgmca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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:cH4Sww3C+5l0+j2/3daux3kwi0rNWa1JX9al3gT9I?= =?us-ascii?Q?VOINBudPKuIpDqxRfOFfoElt5tzvDEUrz5c8HzBwePUb/jWfI00eWGVAzlGq?= =?us-ascii?Q?exfapG8rHTdLKw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nosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR12MB1239; 20:TMZyvfdEzNwda2JQeX26a+QYv4EcfuO81ndeH8/odlNN8ffieN1+ZhEEg/tWzyrW4E0hBIZk6akWuE5EEzVNKRQpTBg6w7hZEkB9Fi7YWg6CbUATpng2MHgiz6ENK0Qp27hTbDHnefdCtHCG8+0e0o/boAUV4TPwpq/shjJaRCXgJKs38rrUujGTGM2Fu1UdpIh95JfXaTpko838qPPvsa0tZev9e7vIEgI4cvHHsbccSRzqDYJx+BQ6RBYIHFHH X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Oct 2017 22:38:45.8923 (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 6/9] UefiCpuPkg: Register/SmramSaveStateMap.h 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:27 -0000 Content-Type: text/plain Add a FixedPCD to replace an Intel-specific hard-coded macro. The new PCD allows SMM support on AMD-based x86 systems. PcdCpuSmmSmramSaveStateMapOffset - SMRAM Save State Map Offset. 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/Include/Register/SmramSaveStateMap.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Include/Register/SmramSaveStateMap.h b/UefiCpuPkg/Include/Register/SmramSaveStateMap.h index a7c7562..2167f33 100644 --- a/UefiCpuPkg/Include/Register/SmramSaveStateMap.h +++ b/UefiCpuPkg/Include/Register/SmramSaveStateMap.h @@ -8,6 +8,8 @@ Intel(R) 64 and IA-32 Architectures Software Developer's Manual Volume 3C, Section 34.7 Managing Synchronous and Asynchronous SMIs Copyright (c) 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 @@ -34,7 +36,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. /// /// Offset of SMRAM Save State Map from SMBASE /// -#define SMRAM_SAVE_STATE_MAP_OFFSET 0xfc00 +#define SMRAM_SAVE_STATE_MAP_OFFSET (FixedPcdGet16 (PcdCpuSmmSmramSaveStateMapOffset)) #pragma pack (1) -- 2.7.4