函数逻辑报告

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

函数名称:Doesn't attempt to pass an error out to MTRR users* because it's quite complicated in some cases and probably not* worth it because the best error handling is to ignore it.

函数原型:void mtrr_wrmsr(unsigned msr, unsigned a, unsigned b)

返回类型:void

参数:

类型参数名称
unsignedmsr
unsigneda
unsignedb
526  如果wrmsr with exception handling 小于0则
527  打印错误信息("MTRR: CPU %u: Writing MSR %x to %x:%x failed\n", 当前cpu ID(), msr, a, b)
调用者
名称描述
k8_check_syscfg_dram_mod_enBIOS 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
set_fixed_rangeset_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
set_mtrr_var_rangesSet the MSR pair relating to a var range.* Returns true if changes are made.
prepare_setSince we are disabling the cache don't allow any interrupts,* they would run extremely slow and would only increase the pain.* The caller must ensure that local interrupts are disabled and* are reenabled after post_set() has been called.
post_set
generic_set_mtrrgeneric_set_mtrr - set variable MTRR register on the local CPU.*@reg: The register to set.*@base: The base address of the region.*@size: The size of the region. If this is 0 the region is disabled.*@type: The type of the region.* Returns nothing.