函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\generic.c Create Date:2022-07-27 09:06:22
Last Modify:2022-05-18 17:45:43 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Grab all of the MTRR state for this CPU into *state

函数原型:bool __init get_mtrr_state(void)

返回类型:bool

参数:

469  vrs等于var_ranges
471  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_MTRRcap, lo, dummy)
472  have_fixed等于lo右移8位按位与1
474 i小于num_var_ranges循环Get the MSR pair relating to a var range
476  如果have_fixedget_fixed_ranges(fixed_ranges)
479  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_MTRRdefType, lo, dummy)
480  def_type等于lo按位与0xff
481  enabled等于lo按位与0xc00的值右移10位
483  如果amd_special_default_mtrr()则
487  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(MSR_K8_TOP_MEM2, low, high)
488  mtrr_tom2等于high
489  mtrr_tom2左移等于32位
490  mtrr_tom2或等于low
491  mtrr_tom2与等于0xffffff800000ULL
494  print_mtrr_state()
496  mtrr_state_set等于1
498  返回:非非enabled按位与MTRR_STATE_MTRR_ENABLED的值
调用者
名称描述
mtrr_bp_initmtrr_bp_init - initialize mtrrs on the boot CPU* This needs to be called early; before any of the other CPUs are* initialized (i.e. before smp_init()).