函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:load_microcode_amd

函数原型:static enum ucode_state load_microcode_amd(bool save, u8 family, const u8 *data, size_t size)

返回类型:enum ucode_state

参数:

类型参数名称
boolsave
u8family
const u8 *data
size_tsize
844  free_equiv_cpu_table()
846  ret等于__load_microcode_amd(family, data, size)
847  如果ret不等于UCODE_OK
848  cleanup()
849  返回:ret
852  p等于find_patch(0)
853  如果非p
854  返回:ret
855  否则
856  如果microcode大于等于patch_id则返回:ret
859  ret等于UCODE_NEW
863  如果非save则返回:ret
866  memset(amd_ucode_patch, 0, PATCH_MAX_SIZE)
867  memcpy(amd_ucode_patch, Intel uses only this one , min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, ksize( Intel uses only this one ), PATCH_MAX_SIZE))
869  返回:ret
调用者
名称描述
save_microcode_in_initrd_amd
request_microcode_amdAMD microcode firmware naming convention, up to family 15h they are in* the legacy file:* amd-ucode/microcode_amd.bin* This legacy file is always smaller than 2K in size.* Beginning with family 15h, they are in family-specific firmware files: