From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0618.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe48::618]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E8A8F81D10 for ; Fri, 28 Oct 2016 09:27:18 -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=Q4G3EZyHoIrItrFWGpaBQH8Iq7osquvs4ZpDFpFB5KU=; b=fKO2SJkuBHZN1v/nyOLN/0eRJqE1saaJ6nMVrRPUl0cTpJ788gkiHi5f4iqo+Io8ClB9KIxYBxFSMftBcEapuDf/w9AmHJKTd0u7Ege4q1N7AnLnLTKxauOiizoAesVDq2bmSATVOAJsERYmRvZdDIqWicu/XdfdAKQPWbsguJ4= 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 DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Fri, 28 Oct 2016 16:27:17 +0000 From: Leo Duran To: CC: , , Leo Duran Date: Fri, 28 Oct 2016 11:26:54 -0500 Message-ID: <1477672015-17583-1-git-send-email-leo.duran@amd.com> X-Mailer: git-send-email 1.9.1 MIME-Version: 1.0 X-Originating-IP: [165.204.77.1] X-ClientProxiedBy: CY4PR13CA0023.namprd13.prod.outlook.com (10.168.161.161) To DM5PR12MB1243.namprd12.prod.outlook.com (10.168.237.22) X-MS-Office365-Filtering-Correlation-Id: e85e3b93-f14a-4de2-8b9d-08d3ff4f48ba X-Microsoft-Exchange-Diagnostics: 1; DM5PR12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SKQPP1LDON09BbCHbHYhe1e9V+981n5iLbWqnkLREm68rIPmvtfDG+ANEkHEbD3GeVayQrN0O5GhTAIcHHfI6uaBf6+ppDDTHm2e; 20:Ijjy6+gTcWqg+mv8A36TyfuYveItmElZBdCZAYDffeu2lnunot2i59fnWiLG3f/L6UAAio0PtOA7B8p8tvDEOfWjmLybRs5qJM/pIEI/8d5/GLY8y7RyoxODn4UlpA0Ey0cMVe5xNEdde69cPtBD7vf+imzBFD5QMIjm1BZndVOieVlxDqSFKoJN9wmRISRheKG4z17VJmJyiUxVrkJYxs1NYrP2TJGIONMNJJSDBZy1ncXHFVg6x9N1tTdUpGIUCrsm7A1at6Zk90LGBMYJhOEB2znNv/fig0NRVQ963u6mOxUO4qJ0fpFEGPmvYcHSocPhkEjf6W0vZbxHe0xeuOlYEqM7YHx2N0zyutGgmMLX5HUGOehDl15MZSLsB3Jjmm8Kh0DGBwIjsDifVYjW4gf57abK95vXS1/EUm8KtkZqBWm7MJIV+ofuoRkbEy8+AJO5I2MqN72aUjskEQAFBWg6FxYM+ERXUC7KKhLMcoJV7p6dchVi4ooQppLM/jhJ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6055026); SRVR:DM5PR12MB1243; BCL:0; PCL:0; RULEID:; SRVR:DM5PR12MB1243; X-Microsoft-Exchange-Diagnostics: 1; DM5PR12MB1243; 4:qRn0kfJbRWoq9tslzzDY3/YJxNQM46rws5dQm4w8kdib+D8OeBB1ANzEUbCw3S8AtSA94PpqO0+jOi9koWWYL8Hnq3re6QEnumDrAQ/rhusv6uUAblr5gXI2L6Nr/1TkHQ/ttZS0ImgMLam+7NxirmltfD5tyLxQ/RUu2OSV3A+rGhYoW8ewxhxqFu+CGyEXcuf+wZt0vLi9dDiptn3OStxYBhryE5cB9thhw1K9wfcSHpv10vIIOkjAXedW6Mou6udTZeX3mI2cFH6DKIroOHbYybXoBp8iCBhwYiWW5vulkQyoAnoYaUGh+i6wHN7yxBwtSloANXwCJUxnzufbOKKdFVluiy8skGdnAcXI4HUaT20BWvO3UKOeygWaGekrOTyS5I3hBnohr00IwVyylvX77U0K2/AjJsOv7qKYo3w= X-Forefront-PRVS: 0109D382B0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(7916002)(189002)(199003)(5003940100001)(50986999)(229853001)(2351001)(33646002)(48376002)(106356001)(105586002)(42186005)(101416001)(50226002)(50466002)(68736007)(6116002)(110136003)(6916009)(5660300001)(86362001)(2906002)(4326007)(3846002)(586003)(53416004)(92566002)(77096005)(6666003)(36756003)(189998001)(66066001)(47776003)(81156014)(81166006)(8676002)(7846002)(7736002)(97736004)(305945005)(19627235001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR12MB1243; H:leduran-Precision-WorkStation-T5400.amd.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; DM5PR12MB1243; 23:krafb9AGkzQvttPWn3djeTPlysivqqAqEPimyO/Aq?= =?us-ascii?Q?s4JJkjh9Q7E/7lhGE9DNSJUuHCjFi7GA+8Ya5uqy7rtbode/OcPOKoSTlxgZ?= =?us-ascii?Q?sRz3owOK3fQobMwGKt7JAfC3f/fO4T69gRbGGtip8w6zunhH3C77TKcdNLMa?= =?us-ascii?Q?OT0dOw6d6p81Vhtf7kRZrBdvNsj66sjfpy4k9UM7mqB+970e7sry4kuLreus?= =?us-ascii?Q?MD+WSFk9VcX0YXoQN/YIQwAGH/qdpro+8PqXQzup7qjByGRtZFPeaQdC2IBw?= =?us-ascii?Q?xAJroDX1vSgn5pFFQOT5iBkw2qRAWh+Ov6yWA2Yc9EMGyhJ7Y1GiBtWoVaIS?= =?us-ascii?Q?eTzZf84p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99FWls6BEfc0Z+Sz2FLECJ390FXB94ADi8POgBB4GClqnhZ7MslFPBpBDPfa7tTxniJSfGgTmAzuj5Icr6n5/7j6AcCKj4PvTHQdGm61xUq2qSlPb/OTs4k/zXFhF0hn0tuZ514CxAf7iKCR1l654SE X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Oct 2016 16:27:17.4333 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR12MB1243 Subject: [PATCH] UefiCpuPkg: GetProcessorLocation() X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Oct 2016 16:27:19 -0000 Content-Type: text/plain This patch moves code that uses Intel-specific CPUID to a common library. Leo Duran (1): UefiCpuPkg: Move GetProcessorLocation() to LocalApicLib library UefiCpuPkg/Include/Library/LocalApicLib.h | 18 +++ UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c | 130 +++++++++++++++++++++ .../BaseXApicX2ApicLib/BaseXApicX2ApicLib.c | 130 +++++++++++++++++++++ UefiCpuPkg/Library/MpInitLib/MpLib.c | 128 +------------------- UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c | 121 +------------------ 5 files changed, 280 insertions(+), 247 deletions(-) mode change 100644 => 100755 UefiCpuPkg/Include/Library/LocalApicLib.h mode change 100644 => 100755 UefiCpuPkg/Library/BaseXApicLib/BaseXApicLib.c mode change 100644 => 100755 UefiCpuPkg/Library/BaseXApicX2ApicLib/BaseXApicX2ApicLib.c mode change 100644 => 100755 UefiCpuPkg/Library/MpInitLib/MpLib.c mode change 100644 => 100755 UefiCpuPkg/PiSmmCpuDxeSmm/CpuService.c -- 1.9.1