MCPcopy Create free account
hub / github.com/coreboot/coreboot / isCPUGenuineIntel

Function isCPUGenuineIntel

util/intelmetool/src/intelmetool.c:58–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56}
57
58static int isCPUGenuineIntel(void)
59{
60 regs_t regs;
61 unsigned int level = 0;
62 unsigned int eax = 0;
63
64 __get_cpuid(level, &eax, &regs.ebx, &regs.ecx, &regs.edx);
65
66 return !strncmp((char *)&regs, "GenuineIntel", CPU_ID_SIZE-1);
67}
68
69/* You need >4GB total ram, in kernel cmdline, use 'mem=1000m'
70 * then this code will clone to absolute memory address 0xe0000000

Callers 1

intelmetool.cFile · 0.85

Calls 1

strncmpFunction · 0.50

Tested by

no test coverage detected