david/ipxe
Archived
1
0
This repository has been archived on 2020-12-06. You can view files and clone it, but cannot push or open issues or pull requests.
ipxe/src/arch/x86
Michael Brown 55201e2d0e [settings] Expose CPUID instruction via settings mechanism
Allow CPUID values to be read using the syntax

  ${cpuid/<register>.<function>}

For example, ${cpuid/2.0x80000001} will give the value of %ecx after
calling CPUID with %eax=0x80000001.  Values for <register> are encoded
as %eax=0, %ebx=1, %ecx=2, %edx=3.

The numeric encoding is more sophisticated than described above,
allowing for settings such as the CPU model (obtained by calling CPUID
with %eax=0x80000002-0x80000004 inclusive and concatenating the values
returned in %eax:%ebx:%ecx:%edx).  See the source code for details.

The "cpuvendor" and "cpumodel" settings provide easy access to these
more complex CPUID settings.

This functionality is intended to complement the "cpuid" command,
which allows for testing individual CPUID feature bits.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
2013-08-07 12:06:28 +01:00
..
core [settings] Expose CPUID instruction via settings mechanism 2013-08-07 12:06:28 +01:00
hci/commands [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
include [settings] Expose CPUID instruction via settings mechanism 2013-08-07 12:06:28 +01:00
interface/efi [legal] Update FSF mailing address in GPL licence texts 2012-07-20 19:55:45 +01:00
prefix [efi] Perform meaningful error code conversions 2013-04-19 13:34:19 +01:00
scripts [build] Fix %.licence build target 2013-07-16 00:50:54 +02:00
Makefile [cmdline] Add "cpuid" command 2012-06-07 00:37:04 +01:00
Makefile.efi [build] Add efidrv.cab target for UEFI Secure Boot signing 2013-05-14 20:46:53 +01:00
Makefile.linux [linux] Make malloc and linux_umalloc valgrindable 2011-03-27 21:03:05 +01:00