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:14
Last Modify:2022-05-18 17:45:43 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_fixed_ranges - checks & updates the fixed-range MTRRs if they* differ from the saved set*@frs: pointer to fixed-range MTRR values, saved by get_fixed_ranges()

Proto:static int set_fixed_ranges(mtrr_type *frs)

Type:int

Parameter:

TypeParameterName
mtrr_type *frs
639  saved = frs
640  bool changed = false
641  block = -1
643  BIOS is expected to clear MtrrFixDramModEn bit, see for example* "BIOS and Kernel Developer's Guide for the AMD Athlon 64 and AMD* Opteron Processors" (26094 Rev. 3.30 February 2006), section* "13
645  When number of MTRRs in this block cycle
646  When range < number of MTRRs in this block cycle set_fixed_range - checks & updates a fixed-range MTRR if it* differs from the value it should have*@msr: MSR address of the MTTR which should be checked and updated*@changed: pointer which indicates whether the MTRR needed to be changed*@msrwords: pointer
651  Return changed
Caller
NameDescribe
set_mtrr_stateset_mtrr_state - Set the MTRR state for this CPU.* NOTE: The CPU must already be in a safe state for MTRR changes.* RETURNS: 0 if no changes made, else a mask indicating what was changed.