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:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:wrmsrl_amd_safe

Proto:static inline int wrmsrl_amd_safe(unsigned msr, unsigned long long val)

Type:int

Parameter:

TypeParameterName
unsignedmsr
unsigned long longval
61  unsigned int gprs[8] = {0}
63  WARN_ONCE((CPU family != 0xf), "%s should only be used on K8!\n", __func__)
66  gprs[0] = val
67  gprs[1] = msr
68  gprs[2] = val >> 32
69  gprs[7] = 0x9c5a203a
71  Return wrmsr_safe_regs(gprs)
Caller
NameDescribe
init_amd_k8