Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\amd.c Create Date:2022-07-28 07:58:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:rdmsrl_amd_safe

Proto:static inline int rdmsrl_amd_safe(unsigned msr, unsigned long long *p)

Type:int

Parameter:

TypeParameterName
unsignedmsr
unsigned long long *p
43  unsigned int gprs[8] = {0}
46  WARN_ONCE((CPU family != 0xf), "%s should only be used on K8!\n", __func__)
49  gprs[1] = msr
50  gprs[7] = 0x9c5a203a
52  err = rdmsr_safe_regs(gprs)
54  p = gprs[0] | gprs[2] << 32
56  Return err
Caller
NameDescribe
init_amd_k8