Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_block_address

Proto:static unsigned int get_block_address(unsigned int current_addr, unsigned int low, unsigned int high, unsigned int bank, unsigned int block, unsigned int cpu)

Type:unsigned int

Parameter:

TypeParameterName
unsigned intcurrent_addr
unsigned intlow
unsigned inthigh
unsigned intbank
unsigned intblock
unsigned intcpu
494  addr = 0 , offset = 0
496  If bank >= per_cpu(mce_num_banks, cpu) || block >= NR_BLOCKS Then Return addr
499  If * Indicates that overflow conditions are not fatal, when set. Then Return smca_get_block_address(bank, block, cpu)
504  Case block == 0
505  addr = misc(bank)
506  Break
507  Case block == 1
508  offset = (low & MASK_BLKPTR_LO) >> 21
509  If offset Then addr = MCG_XBLK_ADDR + offset
511  Break
512  Default
513  addr = ++current_addr
515  Return addr
Caller
NameDescribe
mce_amd_feature_initpu init entry point, called from mce.c with preempt off
allocate_threshold_blocks