Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\generic.c Create Date:2022-07-28 08:06:08
Last Modify:2022-05-18 17:45:43 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:print_mtrr_state

Proto:static void __init print_mtrr_state(void)

Type:void

Parameter:Nothing

408  pr_debug("MTRR default type: %s\n", mtrr_attrib_to_str(def_type))
410  If have_fixed Then
411  pr_debug("MTRR fixed ranges %sabled:\n", ((enabled & MTRR_STATE_MTRR_ENABLED) && (enabled & Bit fields for enabled in struct mtrr_state_type )) ? "en" : "dis")
415  print_fixed(0x00000, 0x10000, fixed_ranges + 0)
416  When i < 2 cycle print_fixed(0x80000 + i * 0x20000, 0x04000, fixed_ranges + (i + 1) * 8)
419  When i < 8 cycle print_fixed(0xC0000 + i * 0x08000, 0x01000, fixed_ranges + (i + 3) * 8)
424  print_fixed_last()
426  pr_debug("MTRR variable ranges %sabled:\n", enabled & MTRR_STATE_MTRR_ENABLED ? "en" : "dis")
428  high_width = ( __ffs64 - find first set bit in a 64 bit word*@word: The 64 bit word* On 64 bit arches this is a synomyn for __ffs* The result is not defined if no bits are set, so check that @word* is non-zero before calling this. - 32 - PAGE_SHIFT determines the page size + 3) / 4
430  When i < num_var_ranges cycle
431  If mask_lo & 1 << 11 Then pr_debug(" %u base %0*X%05X000 mask %0*X%05X000 %s\n", i, high_width, base_hi, base_lo >> 12, high_width, mask_hi, mask_lo >> 12, mtrr_attrib_to_str(base_lo & 0xff))
441  Else pr_debug(" %u disabled\n", i)
444  If mtrr_tom2 Then pr_debug("TOM2: %016llx aka %lldM\n", mtrr_tom2, mtrr_tom2 >> 20)
Caller
NameDescribe
get_mtrr_stateGrab all of the MTRR state for this CPU into *state