staticconst u32 req_flags[NCAPINTS] =
{
REQUIRED_MASK0,
REQUIRED_MASK1, 0, /* REQUIRED_MASK2 not implemented in this file */ 0, /* REQUIRED_MASK3 not implemented in this file */
REQUIRED_MASK4, 0, /* REQUIRED_MASK5 not implemented in this file */
REQUIRED_MASK6, 0, /* REQUIRED_MASK7 not implemented in this file */ 0, /* REQUIRED_MASK8 not implemented in this file */ 0, /* REQUIRED_MASK9 not implemented in this file */ 0, /* REQUIRED_MASK10 not implemented in this file */ 0, /* REQUIRED_MASK11 not implemented in this file */ 0, /* REQUIRED_MASK12 not implemented in this file */ 0, /* REQUIRED_MASK13 not implemented in this file */ 0, /* REQUIRED_MASK14 not implemented in this file */ 0, /* REQUIRED_MASK15 not implemented in this file */
REQUIRED_MASK16,
};
if (test_bit(X86_FEATURE_LM, cpu.flags))
cpu.level = 64;
if (err == 0x01 &&
!(err_flags[0] &
~((1 << X86_FEATURE_XMM)|(1 << X86_FEATURE_XMM2))) &&
is_amd()) { /* If this is an AMD and we're only missing SSE+SSE2, try to
turn them on */
get_cpuflags(); /* Make sure it really did something */
err = check_cpuflags();
} elseif (err == 0x01 &&
!(err_flags[0] & ~(1 << X86_FEATURE_CX8)) &&
is_centaur() && cpu.model >= 6) { /* If this is a VIA C3, we might have to enable CX8
explicitly */
err = check_cpuflags();
} elseif (err == 0x01 &&
!(err_flags[0] & ~(1 << X86_FEATURE_PAE)) &&
is_intel() && cpu.level == 6 &&
(cpu.model == 9 || cpu.model == 13)) { /* PAE is disabled on this Pentium M but can be forced */ if (cmdline_find_option_bool("forcepae")) {
puts("WARNING: Forcing PAE in CPU flags\n");
set_bit(X86_FEATURE_PAE, cpu.flags);
err = check_cpuflags();
} else {
puts("WARNING: PAE disabled. Use parameter 'forcepae' to enable at your own risk!\n");
}
} if (!err)
err = check_knl_erratum();
if (err_flags_ptr)
*err_flags_ptr = err ? err_flags : NULL; if (cpu_level_ptr)
*cpu_level_ptr = cpu.level; if (req_level_ptr)
*req_level_ptr = req_level;
return (cpu.level < req_level || err) ? -1 : 0;
}
int check_knl_erratum(void)
{ /* *Firstcheckfortheaffectedmodel/family:
*/ if (!is_intel() ||
cpu.family != 6 ||
cpu.model != 0x57 /*INTEL_XEON_PHI_KNL*/) return0;
puts("This 32-bit kernel can not run on this Xeon Phi x200\n" "processor due to a processor erratum. Use a 64-bit\n" "kernel, or enable PAE in this 32-bit kernel.\n\n");
return -1;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.9 Sekunden
(vorverarbeitet am 2026-09-28)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.