Changeset View
Changeset View
Standalone View
Standalone View
sys/x86/x86/mp_x86.c
Show First 20 Lines • Show All 208 Lines • ▼ Show 20 Lines | if (type == 0) | ||||
return (0); | return (0); | ||||
if (type > 3) { | if (type > 3) { | ||||
printf("unexpected cache type %d\n", type); | printf("unexpected cache type %d\n", type); | ||||
return (1); | return (1); | ||||
} | } | ||||
if (type == 2) /* ignore instruction cache */ | if (type == 2) /* ignore instruction cache */ | ||||
return (1); | return (1); | ||||
if (level == 0 || level > MAX_CACHE_LEVELS) { | if (level == 0 || level > MAX_CACHE_LEVELS) { | ||||
printf("unexpected cache level %d\n", type); | printf("unexpected cache level %d\n", level); | ||||
return (1); | return (1); | ||||
} | } | ||||
if (caches[level - 1].present) { | if (caches[level - 1].present) { | ||||
printf("WARNING: multiple entries for L%u data cache\n", level); | printf("WARNING: multiple entries for L%u data cache\n", level); | ||||
printf("%u => %u\n", caches[level - 1].id_shift, | printf("%u => %u\n", caches[level - 1].id_shift, | ||||
mask_width(share_count)); | mask_width(share_count)); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,469 Lines • Show Last 20 Lines |