函数逻辑报告

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:12
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Early load occurs before we can vmalloc()

函数原型:static bool apply_microcode_early_amd(unsigned int cpuid_1_eax, void *ucode, size_t size, bool save_patch)

返回类型:bool

参数:

类型参数名称
unsigned intcpuid_1_eax
void *ucode
size_tsize
boolsave_patch
421  struct cont_desc desc = {0}
422  u8( * patch)[PATCH_MAX_SIZE]
425  bool ret = false
428  new_rev等于__pa_nodebug( & ucode_new_rev)
429  patch等于__pa_nodebug( & amd_ucode_patch)
435  cpuid_1_eax等于cpuid_1_eax
437  Scan the ucode blob for the proper container as we can have multiple* containers glued together.
439  mc等于mc
440  如果非mc则返回:ret
443  native_rdmsr(AMD64 MSRs. Not complete. See the architecture manual for a more* complete list., rev, dummy)
444  如果rev大于等于patch_id则返回:ret
447  如果非__apply_microcode_amd(mc)则
448  new_rev等于patch_id
449  ret = true
451  如果save_patchmemcpy(patch, mc, min_t - return minimum of two values, using the specified type*@type: data type to use*@x: first value*@y: second value(u32, psize, PATCH_MAX_SIZE))
455  返回:ret
调用者
名称描述
load_ucode_amd_bsp
load_ucode_amd_ap