Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Called for each booted CPU to set up machine checks.* Must be called with preempt off:

Proto:void mcheck_cpu_init(struct cpuinfo_x86 *c)

Type:void

Parameter:

TypeParameterName
struct cpuinfo_x86 *c
1918  If disabled Then Return
1921  If __mcheck_cpu_ancient_init(c) Then Return
1924  If Not mce_available(c) Then Return
1927  Initialize Machine Checks for a CPU.
1929  If Add per CPU specific workarounds here < 0 Then
1930  disabled = 1
1931  Return
1934  If mce_gen_pool_init() Then
1935  disabled = 1
1936  These can be used to print at the various log levels.* All of these will print unconditionally, although note that pr_debug()* and other debug macros are compiled out unless either DEBUG is defined* or CONFIG_DYNAMIC_DEBUG is set.("Couldn't allocate MCE records pool!\n")
1937  Return
1940  machine_check_vector = The actual machine check handler. This only handles real* exceptions when something got corrupted coming in through int 18.* This is executed in NMI context not subject to normal locking rules. This* implies that most kernel services cannot be safely used
1942  Init basic CPU features needed for early decoding of MCEs.
1943  __mcheck_cpu_init_generic()
1944  __mcheck_cpu_init_vendor(c)
1945  __mcheck_cpu_init_clear_banks()
1946  Do a final check to see if there are any unused/RAZ banks
1947  __mcheck_cpu_setup_timer()