From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=134.134.136.31; helo=mga06.intel.com; envelope-from=eric.dong@intel.com; receiver=edk2-devel@lists.01.org Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 68E8821164EED for ; Sun, 14 Oct 2018 19:50:08 -0700 (PDT) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Oct 2018 19:50:08 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,383,1534834800"; d="scan'208";a="241323799" Received: from ydong10-win10.ccr.corp.intel.com ([10.239.9.125]) by orsmga004.jf.intel.com with ESMTP; 14 Oct 2018 19:50:07 -0700 From: Eric Dong To: edk2-devel@lists.01.org Cc: Ruiyu Ni , Laszlo Ersek Date: Mon, 15 Oct 2018 10:49:45 +0800 Message-Id: <20181015024948.228-2-eric.dong@intel.com> X-Mailer: git-send-email 2.15.0.windows.1 In-Reply-To: <20181015024948.228-1-eric.dong@intel.com> References: <20181015024948.228-1-eric.dong@intel.com> Subject: [Patch 1/4] UefiCpuPkg/Include/AcpiCpuData.h: Add Semaphore related Information. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Oct 2018 02:50:08 -0000 In order to support semaphore related logic, add new definition for it. Cc: Ruiyu Ni Cc: Laszlo Ersek Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Eric Dong --- UefiCpuPkg/Include/AcpiCpuData.h | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Include/AcpiCpuData.h b/UefiCpuPkg/Include/AcpiCpuData.h index 9e51145c08..b3cf2f664a 100644 --- a/UefiCpuPkg/Include/AcpiCpuData.h +++ b/UefiCpuPkg/Include/AcpiCpuData.h @@ -15,6 +15,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. #ifndef _ACPI_CPU_DATA_H_ #define _ACPI_CPU_DATA_H_ +#include + // // Register types in register table // @@ -22,9 +24,20 @@ typedef enum { Msr, ControlRegister, MemoryMapped, - CacheControl + CacheControl, + Semaphore } REGISTER_TYPE; +// +// CPU information. +// +typedef struct { + UINT32 PackageCount; // Packages in this CPU. + UINT32 CoreCount; // Max Core count in the packages. + UINT32 ThreadCount; // MAx thread count in the cores. + UINT32 *ValidCoresInPackages; // Valid cores in each package. +} CPU_STATUS_INFORMATION; + // // Element of register table entry // @@ -147,6 +160,14 @@ typedef struct { // provided. // UINT32 ApMachineCheckHandlerSize; + // + // CPU information which is required when set the register table. + // + CPU_STATUS_INFORMATION CpuStatus; + // + // Location info for each ap. + // + EFI_CPU_PHYSICAL_LOCATION *ApLocation; } ACPI_CPU_DATA; #endif -- 2.15.0.windows.1