函数逻辑报告

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

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

函数原型:static inline void k8_check_syscfg_dram_mod_en(void)

返回类型:void

参数:

53  如果非CPU vendor 恒等于X86_VENDOR_AMDCPU family 大于等于0x0f的值则返回
57  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_K8_SYSCFG, lo, hi)
58  如果lo按位与MtrrFixDramModEn bit
59  打印错误信息(FW_WARN"MTRR: CPU %u: SYSCFG[MtrrFixDramModEn] not cleared by BIOS, clearing this bit\n", 当前cpu ID())
62  lo与等于MtrrFixDramModEn bit 的反
63  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.
调用者
名称描述
get_fixed_ranges
set_fixed_rangesset_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()