函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called for each booted CPU to set up machine checks.* Must be called with preempt off:

函数原型:void mcheck_cpu_init(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
1918  如果disabled则返回
1921  如果__mcheck_cpu_ancient_init(c)则返回
1924  如果非mce_available(c)则返回
1927  Initialize Machine Checks for a CPU.
1929  如果Add per CPU specific workarounds here 小于0则
1930  disabled等于1
1931  返回
1934  如果mce_gen_pool_init()则
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  返回
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()