Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\core.c Create Date:2022-07-28 08:00:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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.

Proto:static inline void mce_gather_info(struct mce *m, struct pt_regs *regs)

Type:void

Parameter:

TypeParameterName
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  If regs Then
446  Code segment = cs
453  If v8086_mode(regs) Then Code segment |= 3
457  If rip_msr Then Instruction Pointer when the error happened = MSR access wrappers used for error injection
Caller
NameDescribe
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