函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mce\amd.c Create Date:2022-07-27 09:03:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:lvt_off_valid

函数原型:static int lvt_off_valid(struct threshold_block *b, int apic, unsigned int lo, unsigned int hi)

返回类型:int

参数:

类型参数名称
struct threshold_block *b
intapic
unsigned intlo
unsigned inthi
349  msr等于hi按位与MASK_LVTOFF_HI的值右移20位
351  如果apic小于0则
352  打印错误信息(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"cpu %d, failed to setup threshold interrupt for bank %d, block %d (MSR%08X=0x%x%08x)\n", CPU which controls MCA bank , MCA bank the block belongs to , Number within bank , MSR address for the block , hi, lo)
355  返回:0
358  如果apic不等于msr
364  如果* Indicates that overflow conditions are not fatal, when set.则返回:0
367  打印错误信息(FW_BUG* Add this to a message where you are sure the firmware is buggy or behaves* really stupid or out of spec"cpu %d, invalid threshold interrupt offset %d for bank %d, block %d (MSR%08X=0x%x%08x)\n", CPU which controls MCA bank , apic, MCA bank the block belongs to , Number within bank , MSR address for the block , hi, lo)
370  返回:0
373  返回:1
调用者
名称描述
threshold_restart_bankReprogram MCx_MISC MSR behind this threshold bank.