From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (NAM11-BN8-obe.outbound.protection.outlook.com [40.107.236.84]) by mx.groups.io with SMTP id smtpd.web10.4191.1588782815925345691 for ; Wed, 06 May 2020 09:33:36 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@amdcloud.onmicrosoft.com header.s=selector2-amdcloud-onmicrosoft-com header.b=SRx3L4pH; spf=none, err=SPF record not found (domain: amd.com, ip: 40.107.236.84, mailfrom: thomas.lendacky@amd.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UFJVK1b+K9oe1GyGMHufeEDiUNu1wwefY3osFbJuaNCydFBNQ0O31D287AMyDPUe/XWValhNfjKYH2kLKAe6wm9A6FT/wI3V/Jfxr794oUvwyoZd0ssdrxcUMLKmWoExfZXlL7G3PAIv331VZ27TadUPmccvuV44Ii/EIUcUR+0/MnBZXthP/+InjKUYmMtG+KPqG9ZZMNAKlWu7ZPo41vnvehmdERa7j6uajj6dMKZBJcUtE+opinVg2nl71EOLcOOkNx5QI0Au1T5OE+m/fOSGynhwEG/Nw8rrKVb5jp6Td74qeRna9fsdCU9OK1QVp1z0TM/5mZDp0PkGlfP2mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rT0lijvlmVzYq3/a20VUp6IBFB3dUFm4jf/NOeQc1U8=; b=VaNnaMeFgbcemZqh0+i6EMjEuQ0FQ/YFVFCgplcqxEoxIMRZfKXKxU1RhsGyuba9fG7PjAX/U07KLAXDjK6xkYao0EHQfevZy6y12+is7d0aexuDsf6gQ1Wh5YfstLWOXAQSAp9Qc6wkMZFaSwu1keU6nQdB1Q5ROlYJgUGQ1Py79ua728OPUywuioMwK3v+Q1aPAcv5PI8kzpKhR45vQxib8al9OnTuntSunEc+z3ipqckZsWRIKEZlgOWPk/V7MKEulAypA713Pw9ZhI9zsHPNtfZIWR90H+dvuBAg+vEtyrNEAEeiXSHXTUOyK1svHB0BvgWKjySnXquDdjz35g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amdcloud.onmicrosoft.com; s=selector2-amdcloud-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=rT0lijvlmVzYq3/a20VUp6IBFB3dUFm4jf/NOeQc1U8=; b=SRx3L4pHloyrBkahMG1+mx4gERt5gZ/M5I04yTY0aB54UAtqNzpK4K5zA06YsBM/7yRhfy+K4OHYtTRBYi0vV6E4gQdoVPJztK5LL5h0QJxNFEvCta11HxDl9HMklqrwnBqTz8tIPr2x1E7vvpLm9JbxtJ5PZpfqsd9q8Pstu+4= Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=amd.com; Received: from DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) by DM5PR12MB2470.namprd12.prod.outlook.com (2603:10b6:4:b4::39) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2958.20; Wed, 6 May 2020 16:33:33 +0000 Received: from DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1]) by DM5PR12MB1355.namprd12.prod.outlook.com ([fe80::4ce1:9947:9681:c8b1%10]) with mapi id 15.20.2958.030; Wed, 6 May 2020 16:33:33 +0000 From: "Lendacky, Thomas" To: devel@edk2.groups.io Cc: Jordan Justen , Laszlo Ersek , Ard Biesheuvel , Liming Gao , Eric Dong , Ray Ni , Anthony Perard , Julien Grall , Brijesh Singh , Andrew Fish , Ard Biesheuvel Subject: [PATCH v2 2/3] OvmfPkg: Use toolchain appropriate CpuExceptionHandlerLib Date: Wed, 6 May 2020 11:33:01 -0500 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: X-ClientProxiedBy: DM5PR04CA0049.namprd04.prod.outlook.com (2603:10b6:3:ef::11) To DM5PR12MB1355.namprd12.prod.outlook.com (2603:10b6:3:6e::7) Return-Path: thomas.lendacky@amd.com MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from tlendack-t1.amd.com (165.204.77.1) by DM5PR04CA0049.namprd04.prod.outlook.com (2603:10b6:3:ef::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2979.26 via Frontend Transport; Wed, 6 May 2020 16:33:32 +0000 X-Mailer: git-send-email 2.17.1 X-Originating-IP: [165.204.77.1] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 8c942c06-4a73-4082-cdf3-08d7f1db37eb X-MS-TrafficTypeDiagnostic: DM5PR12MB2470:|DM5PR12MB2470: X-MS-Exchange-Transport-Forked: True X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5236; X-Forefront-PRVS: 03950F25EC X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: PuIBmLj4kKR7jD7m/IfeAXMUm+OE9S9SDG/fwcIFH+Fhfsf6ucTQvKMk3YcElgZ3Itn3yGusWjixx/JVW1+cG6+JBnAKjN/dGUy9wnSYz5u0uoR0eEITmrEqNwJe4e9dkAt89ESsCmryFCeCF/0tbdSyVIHxeM1Qg71n2/E5tXzzD+Kvo/EOjgu/Fa4YB734KwS5MHmZrqvc57lTuA6ZgMlAH1oq9Jfme9q7VJkt40SAqXTXgiYFL0yWT41P0/pCtgBHSrRNr9+IEOZ+iOTuq2vYZsoC906WsGmWHK+9yxd/x4IFRDuKrQr9/iQc/rgCnRxeioqTbAjUovoagt4zshqjI095INnlWZrlgeeJRmnRkdhco5wMKI2VOx4I7I5JihJDBFsLrmyR8YAQ1GoMxarZvVqKDLUr1u8RssGA+lXfXTJGekyQsbWEZs0Ic4+eUDqysnTW5qGJduUFsj31mYZ49tdvyWEFHa6YT0AzuX6uQmIoGSk5HB+uK5YP4gEHTwtOjmsz4+x/fpiNKz2OLHfrbyu+a1KmYEt82rb6C+xPNpQhVcT8S/6HwLlL7Cn0nCPOgxzwQWD+3ADJfwnxT76KzS408n84YhtV4S0qikmO9oeTYsHTH/fWEp4iA2ousGBL+0BLdsmjN2+L4wBFpw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR12MB1355.namprd12.prod.outlook.com;PTR:;CAT:NONE;SFTY:;SFS:(4636009)(376002)(366004)(346002)(39860400002)(136003)(396003)(33430700001)(2616005)(6666004)(8676002)(956004)(7416002)(478600001)(8936002)(26005)(6486002)(66556008)(966005)(66946007)(4326008)(7696005)(52116002)(36756003)(186003)(16526019)(19627235002)(54906003)(316002)(6916009)(86362001)(2906002)(5660300002)(33440700001)(66476007)(136400200001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData: g73WlwdXgkx/MhirRXqcdmdmrjW+R5f/D0uXJl6YsZI1h3yAezSHJa7WSMTioGLUDrQ3M6RlFcCYDAO9LmiDsjvYhkRjIbGPyWCb4DrWWGcG22eqsOfsshIFkiCK8HY6Pelsh5CEhl3DemGFsdfPTSZosQz8XHcZRcNMsQchfPnrg9uLv49YZMXLW0nnP5SYieAGEjczvPSQ89R9XRBOBatu11ViqgMT7Hxg/7lPJkfC42MCF5K5iGhOH3/y1MBIZrqLFRYBptMFGPFy6z8p1Yi8zAkGFz1stExXa6XD6CsWb7wCM3oeg/NyiYt5YCXs2IXSDy+xXbQQRcUWxInT/6AfuQ3i+bHCu9NklEdDcxeD8Jn8xZRyR7O0e7thmmOAWL7zRw7itJMGD/Yq1wHlWVYwIB6IAF84O+rvZLB5veKRlvlygrVhDjmn6936GeCWRqT/OesZLmjLmca5juV2RcwTxiHUxmDJUCBc2B9C4lCGPkqSdBLXYgbvAahrGg3fdPZ0DIXwOG0zxZLL0IeyKhzlelTdyBRCUlqnPbYBlDQKmoYkjgAYYwz7WAQeRqTcFQiMdpF9nLAd8874YwblWSy4z/ItyFiO91AoU3qIIOw+BjlqDrTUETzPGmxYbcVQ8uUQVL8gVIHShym/rekb0SpjwJtp4IqDyoIkhaQ6AqNEMvE3a1PO9E2sltXWwILona64k9yfyefDllanxCe/vpketK0WL7CM623U+FfWYSkB50cIPAvrb2Ai4p0/EW7cQXh8bNbnV19byesidUSTlIUx/0fWf1BJBcbxyI6e4Nk= X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8c942c06-4a73-4082-cdf3-08d7f1db37eb X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 May 2020 16:33:33.6496 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: RrlfwhqJTzh3dyrW2Zea4nzr7MwpkpVDkYrmsmlPl9JqxD6Z85Sfwr7GtJjPs5L2kBPKWUo9NYLwnpCE37qyyg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB2470 Content-Type: text/plain BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=2340 During the SEC phase, use the XCODE5 CpuExceptionHandlerLib library in place of the standard library when building with the XCODE5 toolchain. The SEC XCODE5 version of the library performs binary patching and should only be used when building with the XCODE5 toolchain. Cc: Jordan Justen Cc: Laszlo Ersek Cc: Ard Biesheuvel Cc: Anthony Perard Cc: Julien Grall Cc: Liming Gao Signed-off-by: Tom Lendacky --- OvmfPkg/OvmfPkgIa32.dsc | 4 ++++ OvmfPkg/OvmfPkgIa32X64.dsc | 4 ++++ OvmfPkg/OvmfPkgX64.dsc | 4 ++++ OvmfPkg/OvmfXen.dsc | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index 7c8b51f43b66..41ac3202961b 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -246,7 +246,11 @@ [LibraryClasses.common.SEC] PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf +!if $(TOOL_CHAIN_TAG) == "XCODE5" + CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf +!else CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf +!endif [LibraryClasses.common.PEI_CORE] HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index a0596c44168c..c2f11aee2cec 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -250,7 +250,11 @@ [LibraryClasses.common.SEC] PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf +!if $(TOOL_CHAIN_TAG) == "XCODE5" + CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf +!else CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf +!endif [LibraryClasses.common.PEI_CORE] HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 2e764b6b7233..643e6041ad53 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -250,7 +250,11 @@ [LibraryClasses.common.SEC] PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf +!if $(TOOL_CHAIN_TAG) == "XCODE5" + CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf +!else CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf +!endif [LibraryClasses.common.PEI_CORE] HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf diff --git a/OvmfPkg/OvmfXen.dsc b/OvmfPkg/OvmfXen.dsc index 8b3615e0b07e..143dc6d5a766 100644 --- a/OvmfPkg/OvmfXen.dsc +++ b/OvmfPkg/OvmfXen.dsc @@ -228,7 +228,11 @@ [LibraryClasses.common.SEC] PeiServicesLib|MdePkg/Library/PeiServicesLib/PeiServicesLib.inf PeiServicesTablePointerLib|MdePkg/Library/PeiServicesTablePointerLibIdt/PeiServicesTablePointerLibIdt.inf MemoryAllocationLib|MdePkg/Library/PeiMemoryAllocationLib/PeiMemoryAllocationLib.inf +!if $(TOOL_CHAIN_TAG) == "XCODE5" + CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/Xcode5SecPeiCpuExceptionHandlerLib.inf +!else CpuExceptionHandlerLib|UefiCpuPkg/Library/CpuExceptionHandlerLib/SecPeiCpuExceptionHandlerLib.inf +!endif [LibraryClasses.common.PEI_CORE] HobLib|MdePkg/Library/PeiHobLib/PeiHobLib.inf -- 2.17.1