[cmdline] Add "cpuid" command

Allow x86 CPU feature flags (such as support for 64-bit mode) to be
checked using the "cpuid" command.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2012-06-06 16:08:24 +01:00
parent 1050135159
commit 591541af66
9 changed files with 310 additions and 161 deletions

View File

@@ -238,6 +238,9 @@ REQUIRE_OBJECT ( vlan_cmd );
#ifdef REBOOT_CMD
REQUIRE_OBJECT ( reboot_cmd );
#endif
#ifdef CPUID_CMD
REQUIRE_OBJECT ( cpuid_cmd );
#endif
/*
* Drag in miscellaneous objects

View File

@@ -36,5 +36,6 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define SANBOOT_PROTO_FCP /* Fibre Channel protocol */
#define REBOOT_CMD /* Reboot command */
#define CPUID_CMD /* x86 CPU feature detection command */
#endif /* CONFIG_DEFAULTS_PCBIOS_H */