函数逻辑报告

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

函数名称:Check if the address reported by the CPU is in a format we can parse.* It would be possible to add code for most other cases, but all would* be somewhat complicated (e.g. segment offset would require an instruction* parser)

函数原型:int mce_usable_address(struct mce *m)

返回类型:int

参数:

类型参数名称
struct mce *m
488  如果非Bank's MCi_STATUS MSR 按位与addr reg. valid 的值则返回:0
492  如果CPU vendor 不等于X86_VENDOR_INTELCPU vendor 不等于X86_VENDOR_ZHAOXIN则返回:1
496  如果非Bank's MCi_STATUS MSR 按位与misc error reg. valid 的值则返回:0
499  如果MCi_MISC register defines (Bank's MCi_MISC MSR )大于PAGE_SHIFT determines the page size 则返回:0
502  如果MCI_MISC_ADDR_MODE(Bank's MCi_MISC MSR )不等于physical address 则返回:0
505  返回:1
调用者
名称描述
cec_add_mce
srao_decode_notifier
machine_check_pollPoll 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