函数逻辑报告

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

函数名称:Initialize Machine Checks for a CPU.

函数原型:static void __mcheck_cpu_cap_init(void)

返回类型:void

参数:

1523  rdmsrl(MSR_IA32_MCG_CAP, cap)
1525  b等于cap按位与Number of Banks
1527  如果b大于Maximum banks number.* This is the limit of the current register layout on* Intel CPUs.
1528  打印警告信息("CPU%d: Using only %u machine check banks out of %u\n", 当前cpu ID(), Maximum banks number.* This is the limit of the current register layout on* Intel CPUs., b)
1530  b等于Maximum banks number.* This is the limit of the current register layout on* Intel CPUs.
1533  抢占保护下的写CPU(mce_num_banks, b)
1535  __mcheck_cpu_mce_banks_init()
1538  如果cap按位与Extended registers available MCG_EXT_CNT(cap)大于等于9则rip_msr等于MSR_IA32_MCG_EIP
1541  如果cap按位与MCA recovery/new status bits ser等于1
调用者
名称描述
mcheck_cpu_initCalled for each booted CPU to set up machine checks.* Must be called with preempt off: