Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Set up machine check reporting on the Winchip C6 series

Proto:void winchip_mcheck_init(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
34  machine_check_vector = Machine check handler for WinChip C6:
36  wmb()
38  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(Centaur-Hauls/IDT defined MSRs. , lo, hi)
39  lo |= 1 << 2
40  lo &= ~(1 << 4)
41  wrmsr(Centaur-Hauls/IDT defined MSRs. , lo, hi)
43  Set in this cpu's CR4.
45  pr_info("Winchip machine check reporting enabled on CPU#0.\n")