Function report |
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 activity | Download SCCT | Chinese |
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:
Type | Parameter | Name |
---|---|---|
void * | data | |
size_t | size | |
struct ucode_cpu_info * | uci | |
bool | save |
330 | struct microcode_intel * patch = NULL |
334 | If size < sizeof(structmicrocode_header_intel) Then Break |
339 | mc_size = get_totalsize(mc_header) |
340 | If Not mc_size || mc_size > size || microcode_sanity_check(data, 0) < 0 Then Break |
352 | If save Then |
353 | save_microcode_patch(data, mc_size) |
354 | Go to next |
358 | If Not patch Then |
359 | If Not Returns 1 if update has been found, 0 otherwise. Then Go to next |
365 | Else |
368 | If Not Returns 1 if update has been found, 0 otherwise. Then Go to next |
378 | next : |
382 | If size Then Return NULL |
385 | Return patch |
Name | Describe |
---|---|
save_microcode_in_initrd_intel | |
__load_ucode_intel | @res_patch, output: a pointer to the patch we found. |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |