函数逻辑报告 |
Source Code:arch\x86\kernel\cpu\mce\amd.c |
Create Date:2022-07-27 09:03:33 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:prepare_threshold_block
函数原型:static int prepare_threshold_block(unsigned int bank, unsigned int block, unsigned int addr, int offset, unsigned int misc_high)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned int | bank | |
unsigned int | block | |
unsigned int | addr | |
int | offset | |
unsigned int | misc_high |
533 | Number within bank 等于block |
537 | 如果非 Bank can generate an interrupt. 则转到:done |
540 | Enable/Disable APIC interrupt 等于1 |
543 | new等于misc_high按位与MASK_LVTOFF_HI的值右移20位 |
544 | 转到:set_offset |
548 | 如果dmsr with exception handling (Deferred error settings , & smca_low, & smca_high)则转到:out |
551 | new等于smca_low按位与Threshold LVT offset is at MSR0xC0000410[15:12] 的值右移12位 |
553 | set_offset : |
554 | offset等于setup_APIC_mce_threshold(offset, new) |
555 | 如果offset恒等于new则thresholding_irq_en = true |
558 | done : |
559 | mce_threshold_block_init( & b, offset) |
561 | out : |
562 | 返回:offset |
名称 | 描述 |
---|---|
mce_amd_feature_init | pu init entry point, called from mce.c with preempt off |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |