函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:show_saved_mc

函数原型:static void show_saved_mc(void)

返回类型:void

参数:

422  i等于0
427  如果链表为空
428  pr_debug("no microcode data saved.\n")
429  返回
432  collect_cpu_info_early( & uci)
434  sig等于sig
435  pf等于pf
436  rev等于rev
437  pr_debug("CPU: sig=0x%x, pf=0x%x, rev=0x%x\n", sig, pf, rev)
445  mc_saved_header等于 Intel uses only this one
447  sig等于sig
448  pf等于pf
449  rev等于rev
450  date等于date
452  total_size等于get_totalsize(mc_saved_header)
453  data_size等于get_datasize(mc_saved_header)
455  pr_debug("mc_saved[%d]: sig=0x%x, pf=0x%x, rev=0x%x, total size=0x%x, date = %04x-%02x-%02x\n", i++, sig, pf, rev, total_size, date & 0xffff, date >> 24, (date >> 16) & 0xff)
462  如果total_size小于等于data_sizeMC_HEADER_SIZE则继续下一循环
465  ext_header等于mc_saved_headerdata_sizeMC_HEADER_SIZE
466  ext_sigcount等于count
467  ext_sig等于ext_headerEXT_HEADER_SIZE
469 j小于ext_sigcount循环
470  sig等于sig
471  pf等于pf
473  pr_debug("\tExtended[%d]: sig=0x%x, pf=0x%x\n", j, sig, pf)
476  ext_sig自加
调用者
名称描述
save_mc_for_earlySave this microcode patch. It will be loaded early when a CPU is* hot-added or resumes.
save_microcode_in_initrd_intel