函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\cleanup.c Create Date:2022-07-27 09:06:48
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:amd_special_default_mtrr

函数原型:int __init amd_special_default_mtrr(void)

返回类型:int

参数:

833  如果CPU vendor 不等于X86_VENDOR_AMDCPU vendor 不等于X86_VENDOR_HYGON则返回:0
836  如果CPU family 小于0xf则返回:0
839  如果dmsr with exception handling (MSR_K8_SYSCFG, & l, & h)小于0则返回:0
845  如果l按位与Newer AMD K8s and later CPUs have a special magic MSR way to force WB* for memory >4GB. Check for that here.* Note this won't check if the MTRRs < 4GB where the magic bit doesn't* apply to are wrong, but so far we don't know of any such case in the wild.按位或Tom2ForceMemTypeWB的值的值恒等于Newer AMD K8s and later CPUs have a special magic MSR way to force WB* for memory >4GB. Check for that here.* Note this won't check if the MTRRs < 4GB where the magic bit doesn't* apply to are wrong, but so far we don't know of any such case in the wild.按位或Tom2ForceMemTypeWB的值则返回:1
848  返回:0
调用者
名称描述
get_mtrr_stateGrab all of the MTRR state for this CPU into *state