Function report |
Source Code:arch\x86\kernel\cpu\mce\core.c |
Create Date:2022-07-28 08:00:49 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Initialize Machine Checks for a CPU.
Proto:static void __mcheck_cpu_cap_init(void)
Type:void
Parameter:Nothing
| 1523 | rdmsrl(MSR_IA32_MCG_CAP, cap) |
| 1525 | b = cap & Number of Banks |
| 1528 | pr_warn("CPU%d: Using only %u machine check banks out of %u\n", smp_processor_id(), Maximum banks number.* This is the limit of the current register layout on* Intel CPUs., b) |
| 1533 | this_cpu_write(mce_num_banks, b) |
| 1535 | __mcheck_cpu_mce_banks_init() |
| 1538 | If cap & Extended registers available && MCG_EXT_CNT(cap) >= 9 Then rip_msr = MSR_IA32_MCG_EIP |
| 1541 | If cap & MCA recovery/new status bits Then ser = 1 |
| Name | Describe |
|---|---|
| mcheck_cpu_init | Called for each booted CPU to set up machine checks.* Must be called with preempt off: |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |