Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
+++ /dev/null
-../../licenses/BSD-MIT
\ No newline at end of file
--- /dev/null
+../../licenses/BSD-MIT
\ No newline at end of file
*
* Example:
* #include <ccan/cpuid/cpuid.h>
*
* Example:
* #include <ccan/cpuid/cpuid.h>
* cpuid(CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
* printf ("Highest extended function supported: %d\n", highest);
*
* cpuid(CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED, &highest);
* printf ("Highest extended function supported: %d\n", highest);
*
CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED = 0x80000000,
CPU_EXTENDED_PROC_INFO_FEATURE_BITS = 0x80000001,
CPU_HIGHEST_EXTENDED_FUNCTION_SUPPORTED = 0x80000000,
CPU_EXTENDED_PROC_INFO_FEATURE_BITS = 0x80000001,
- CPU_PROC_BRAND_STRING = 0x80000002,
+ CPU_PROC_BRAND_STRING = 0x80000002,
CPU_L1_CACHE_AND_TLB_IDS = 0x80000005,
CPU_EXTENDED_L2_CACHE_FEATURES = 0x80000006,
CPU_ADV_POWER_MGT_INFO = 0x80000007,
CPU_L1_CACHE_AND_TLB_IDS = 0x80000005,
CPU_EXTENDED_L2_CACHE_FEATURES = 0x80000006,
CPU_ADV_POWER_MGT_INFO = 0x80000007,
#include <stdio.h>
#include <stdint.h>
#include <stdio.h>
#include <stdint.h>
{
if (!cpuid_is_supported()) {
printf ("CPUID instruction is not supported by this CPU\n");
{
if (!cpuid_is_supported()) {
printf ("CPUID instruction is not supported by this CPU\n");