Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Get microcode matching with BSP's model. Only CPUs with the same model as* BSP can stay in the platform.

Proto:static struct microcode_intel *scan_microcode(void *data, size_t size, struct ucode_cpu_info *uci, bool save)

Type:struct microcode_intel

Parameter:

TypeParameterName
void *data
size_tsize
struct ucode_cpu_info *uci
boolsave
330  struct microcode_intel * patch = NULL
333  When size cycle
334  If size < sizeof(structmicrocode_header_intel) Then Break
337  mc_header = data
339  mc_size = get_totalsize(mc_header)
340  If Not mc_size || mc_size > size || microcode_sanity_check(data, 0) < 0 Then Break
345  size -= mc_size
348  data += mc_size
349  Continue
352  If save Then
354  Go to next
358  If Not patch Then
365  Else
366  phdr = hdr
376  patch = data
378  :
379  data += mc_size
382  If size Then Return NULL
385  Return patch
Caller
NameDescribe
save_microcode_in_initrd_intel
__load_ucode_intel@res_patch, output: a pointer to the patch we found.