函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function returns the number of variable MTRRs

函数原型:static void __init set_num_var_ranges(void)

返回类型:void

参数:

126  config等于0
128  如果use_intel()则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, config, dummy)
130  否则如果is_cpu(AMD)或is_cpu(HYGON)则config等于2
132  否则如果is_cpu(CYRIX)或is_cpu(CENTAUR)则config等于8
135  num_var_ranges等于config按位与0xff
调用者
名称描述
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()).