函数逻辑报告

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:26
Last Modify:2022-05-18 17:45:43 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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()

函数原型:static int set_fixed_ranges(mtrr_type *frs)

返回类型:int

参数:

类型参数名称
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  number of MTRRs in this block 循环
646 range小于 number of MTRRs in this block 循环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  返回:changed
调用者
名称描述
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.