函数逻辑报告

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:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__mcheck_cpu_init_generic

函数原型:static void __mcheck_cpu_init_generic(void)

返回类型:void

参数:

1547  m_fl等于0
1551  如果非bootlogm_fl等于MCP_DONTLOG
1557  bitmap_fill(all_banks, Maximum banks number.* This is the limit of the current register layout on* Intel CPUs.)
1558  Poll for corrected events or events that happened before reset.* Those are just logged through /dev/mcelog.* This is executed in standard interrupt context.* Note: spec recommends to panic for fatal unsignalled* errors here
1560  Set in this cpu's CR4.
1562  rdmsrl(MSR_IA32_MCG_CAP, cap)
1563  如果cap按位与MCG_CTL register available wrmsr(MSR_IA32_MCG_CTL, 0xffffffff, 0xffffffff)
调用者
名称描述
mcheck_cpu_initCalled for each booted CPU to set up machine checks.* Must be called with preempt off:
mce_syscore_resumeOn resume clear all MCE state. Don't want to see leftovers from the BIOS.* Only one CPU is active at this time, the others get re-added later using* CPU hotplug:
mce_cpu_restartmce_device: Sysfs support