Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:This function returns the number of variable MTRRs

Proto:static void __init set_num_var_ranges(void)

Type:void

Parameter:Nothing

126  config = 0
128  If use_intel() Then 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  Else if is_cpu(AMD) || is_cpu(HYGON) Then config = 2
132  Else if is_cpu(CYRIX) || is_cpu(CENTAUR) Then config = 8
135  num_var_ranges = config & 0xff
Caller
NameDescribe
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()).