函数逻辑报告

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

函数名称:apply_microcode_amd

函数原型:static enum ucode_state apply_microcode_amd(int cpu)

返回类型:enum ucode_state

参数:

类型参数名称
intcpu
671  c等于cpu_data(cpu)
678  BUG_ON(These macros fold the SMP functionality into a single CPU system() != cpu)
680  uci等于ucode_cpu_infocpu
682  p等于find_patch(cpu)
683  如果非p则返回:UCODE_NFOUND
686  mc_amd等于 Intel uses only this one
687  mc等于 Intel uses only this one
689  Access to machine-specific registers (available on 586 and better only)* Note: the rd* operations modify the parameters directly (without using* pointer indirection), this allows gcc to optimize better(AMD64 MSRs. Not complete. See the architecture manual for a more* complete list., rev, dummy)
692  如果rev大于等于patch_id
693  ret等于UCODE_OK
694  转到:out
697  如果__apply_microcode_amd(mc_amd)则
698  打印错误信息("CPU%d: update failed for patch_level=0x%08x\n", cpu, patch_id)
700  返回:UCODE_ERROR
703  rev等于patch_id
704  ret等于UCODE_UPDATED
706  打印信息("CPU%d: new patch_level=0x%08x\n", cpu, rev)
708  out :
709  rev等于rev
710  microcode等于rev
713  如果Index into per_cpu list: 恒等于Index into per_cpu list: microcode等于rev
716  返回:ret