static u8 centaur_mcr_reserved; static u8 centaur_mcr_type; /* 0 for winchip, 1 for winchip2 */
/** * centaur_get_free_region - Get a free MTRR. * * @base: The starting (base) address of the region. * @size: The size (in bytes) of the region. * * Returns: the index of the region on success, else -1 on error.
*/ staticint
centaur_get_free_region(unsignedlong base, unsignedlong size, int replace_reg)
{ unsignedlong lbase, lsize;
mtrr_type ltype; int i, max;
max = num_var_ranges; if (replace_reg >= 0 && replace_reg < max) return replace_reg;
for (i = 0; i < max; ++i) { if (centaur_mcr_reserved & (1 << i)) continue;
mtrr_if->get(i, &lbase, &lsize, <ype); if (lsize == 0) return i;
}
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.