UefiCpuPkg/Cpuid: Add UEFI CPUID application
Add UEFI application to UefiCpuPkg to display all supported CPUID leafs and sub-leafs described by UefiCpuPkg/Include/Register/Cpuid.h that is based on information from Intel(R) 64 and IA-32 Architectures Software Developer's Manual, Volume 2A, December 2015, CPUID instruction. Cc: Jeff Fan <jeff.fan@intel.com> Cc: Jiewen Yao <jiewen.yao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney <michael.d.kinney@intel.com> Reviewed-by: Jeff Fan <jeff.fan@intel.com>
This commit is contained in:
1353
UefiCpuPkg/Application/Cpuid/Cpuid.c
Normal file
1353
UefiCpuPkg/Application/Cpuid/Cpuid.c
Normal file
File diff suppressed because it is too large
Load Diff
48
UefiCpuPkg/Application/Cpuid/Cpuid.inf
Normal file
48
UefiCpuPkg/Application/Cpuid/Cpuid.inf
Normal file
@@ -0,0 +1,48 @@
|
||||
## @file
|
||||
# UEFI Application to display CPUID leaf information.
|
||||
#
|
||||
# This UEFI application displays the registers values returned by CPUID for
|
||||
# all the CPUID leafs and sub-leafs that a CPU supports. It also displays
|
||||
# the values of all the bit fields in the registers returned by each CPUID
|
||||
# leaf and sub-leaf.
|
||||
#
|
||||
# Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
#
|
||||
# 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
|
||||
# http://opensource.org/licenses/bsd-license.php
|
||||
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
#
|
||||
##
|
||||
|
||||
[Defines]
|
||||
INF_VERSION = 0x00010005
|
||||
BASE_NAME = Cpuid
|
||||
MODULE_UNI_FILE = Cpuid.uni
|
||||
FILE_GUID = 4AE7E1E8-9DFE-4e3e-85B4-A5F6ABD470FB
|
||||
MODULE_TYPE = UEFI_APPLICATION
|
||||
VERSION_STRING = 0.5
|
||||
ENTRY_POINT = UefiMain
|
||||
|
||||
#
|
||||
# The following information is for reference only and not required by the build tools.
|
||||
#
|
||||
# VALID_ARCHITECTURES = IA32 X64
|
||||
#
|
||||
|
||||
[Sources]
|
||||
Cpuid.c
|
||||
|
||||
[Packages]
|
||||
MdePkg/MdePkg.dec
|
||||
UefiCpuPkg/UefiCpuPkg.dec
|
||||
|
||||
[LibraryClasses]
|
||||
UefiApplicationEntryPoint
|
||||
BaseLib
|
||||
UefiLib
|
||||
|
||||
[UserExtensions.TianoCore."ExtraFiles"]
|
||||
CpuidExtra.uni
|
22
UefiCpuPkg/Application/Cpuid/Cpuid.uni
Normal file
22
UefiCpuPkg/Application/Cpuid/Cpuid.uni
Normal file
@@ -0,0 +1,22 @@
|
||||
// /** @file
|
||||
// UEFI Application to display CPUID leaf information.
|
||||
//
|
||||
// This UEFI application displays the registers values returned by CPUID for
|
||||
// all the CPUID leafs and sub-leafs that a CPU supports. It also displays
|
||||
// the values of all the bit fields in the registers returned by each CPUID
|
||||
// leaf and sub-leaf.
|
||||
//
|
||||
// Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// 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
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_MODULE_ABSTRACT #language en-US "UEFI Application to display CPUID leaf information"
|
||||
|
||||
#string STR_MODULE_DESCRIPTION #language en-US "This UEFI application displays the registers values returned by CPUID for all the CPUID leafs and sub-leafs that a CPU supports. It also displays the values of all the bit fields in the registers returned by each CPUID leaf and sub-leaf."
|
22
UefiCpuPkg/Application/Cpuid/CpuidExtra.uni
Normal file
22
UefiCpuPkg/Application/Cpuid/CpuidExtra.uni
Normal file
@@ -0,0 +1,22 @@
|
||||
// /** @file
|
||||
// UEFI Application to display CPUID leaf information.
|
||||
//
|
||||
// This UEFI application displays the registers values returned by CPUID for
|
||||
// all the CPUID leafs and sub-leafs that a CPU supports. It also displays
|
||||
// the values of all the bit fields in the registers returned by each CPUID
|
||||
// leaf and sub-leaf.
|
||||
//
|
||||
// Copyright (c) 2016, Intel Corporation. All rights reserved.<BR>
|
||||
//
|
||||
// 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
|
||||
// http://opensource.org/licenses/bsd-license.php
|
||||
// THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
|
||||
// WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
||||
//
|
||||
// **/
|
||||
|
||||
#string STR_PROPERTIES_MODULE_NAME
|
||||
#language en-US
|
||||
"CPUID Application"
|
Reference in New Issue
Block a user