generic.c (9a64e8e0ace51b309fdcff4b4754b3649250382a) generic.c (a7101d152665817bf7cafc47e7f5dcb1f54664fe)
1/*
2 * This only handles 32bit MTRR on 32bit hosts. This is strictly wrong
3 * because MTRRs can span up to 40 bits (36bits on most modern x86)
4 */
5#define DEBUG
6
7#include <linux/module.h>
8#include <linux/init.h>

--- 347 unchanged lines hidden (view full) ---

356 print_fixed(0xC0000 + i * 0x08000, 0x01000,
357 mtrr_state.fixed_ranges + (i + 3) * 8);
358
359 /* tail */
360 print_fixed_last();
361 }
362 pr_debug("MTRR variable ranges %sabled:\n",
363 mtrr_state.enabled & 2 ? "en" : "dis");
1/*
2 * This only handles 32bit MTRR on 32bit hosts. This is strictly wrong
3 * because MTRRs can span up to 40 bits (36bits on most modern x86)
4 */
5#define DEBUG
6
7#include <linux/module.h>
8#include <linux/init.h>

--- 347 unchanged lines hidden (view full) ---

356 print_fixed(0xC0000 + i * 0x08000, 0x01000,
357 mtrr_state.fixed_ranges + (i + 3) * 8);
358
359 /* tail */
360 print_fixed_last();
361 }
362 pr_debug("MTRR variable ranges %sabled:\n",
363 mtrr_state.enabled & 2 ? "en" : "dis");
364 if (size_or_mask & 0xffffffffUL)
365 high_width = ffs(size_or_mask & 0xffffffffUL) - 1;
366 else
367 high_width = ffs(size_or_mask>>32) + 32 - 1;
368 high_width = (high_width - (32 - PAGE_SHIFT) + 3) / 4;
364 high_width = (__ffs64(size_or_mask) - (32 - PAGE_SHIFT) + 3) / 4;
369
370 for (i = 0; i < num_var_ranges; ++i) {
371 if (mtrr_state.var_ranges[i].mask_lo & (1 << 11))
372 pr_debug(" %u base %0*X%05X000 mask %0*X%05X000 %s\n",
373 i,
374 high_width,
375 mtrr_state.var_ranges[i].base_hi,
376 mtrr_state.var_ranges[i].base_lo >> 12,

--- 470 unchanged lines hidden ---
365
366 for (i = 0; i < num_var_ranges; ++i) {
367 if (mtrr_state.var_ranges[i].mask_lo & (1 << 11))
368 pr_debug(" %u base %0*X%05X000 mask %0*X%05X000 %s\n",
369 i,
370 high_width,
371 mtrr_state.var_ranges[i].base_hi,
372 mtrr_state.var_ranges[i].base_lo >> 12,

--- 470 unchanged lines hidden ---