函数逻辑报告

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

函数名称:Collect all global (w.r.t. this processor) status about this machine* check into our "mce" struct so that we can use it later to assess* the severity of the problem as we read per-bank specific details.

函数原型:static inline void mce_gather_info(struct mce *m, struct pt_regs *regs)

返回类型:void

参数:

类型参数名称
struct mce *m
struct pt_regs *regs
436  Do initial initialization of a struct mce
438  Machine Check Global Status MSR 等于MSR access wrappers used for error injection
439  如果regs
446  Code segment 等于cs
453  如果v8086_mode(regs)则Code segment 或等于3
457  如果rip_msrInstruction Pointer when the error happened 等于MSR access wrappers used for error injection
调用者
名称描述
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
do_machine_checkThe 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