Function report |
Source Code:arch\x86\kernel\cpu\microcode\intel.c |
Create Date:2022-07-28 08:08:20 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:microcode_sanity_check
Proto:static int microcode_sanity_check(void *mc, int print_err)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
void * | mc | |
int | print_err |
228 | struct extended_sigtable * ext_header = NULL |
229 | ext_sigcount = 0 |
232 | total_size = get_totalsize(mc_header) |
233 | data_size = get_datasize(mc_header) |
235 | If data_size + MC_HEADER_SIZE > total_size Then |
244 | Return -EINVAL |
247 | ext_table_size = total_size - MC_HEADER_SIZE + data_size |
248 | If ext_table_size Then |
249 | ext_table_sum = 0 |
252 | If ext_table_size < EXT_HEADER_SIZE || (ext_table_size - EXT_HEADER_SIZE) % EXT_SIGNATURE_SIZE Then |
259 | ext_header = mc + MC_HEADER_SIZE + data_size |
260 | If ext_table_size != exttable_size(ext_header) Then |
266 | ext_sigcount = count |
272 | ext_tablep = ext_header |
274 | i = ext_table_size / sizeof(u32) |
276 | ext_table_sum += ext_tablep[i] |
278 | If ext_table_sum Then |
290 | orig_sum = 0 |
291 | i = (MC_HEADER_SIZE + data_size) / sizeof(u32) |
293 | orig_sum += ) |
295 | If orig_sum Then |
301 | If Not ext_table_size Then Return 0 |
307 | When i < ext_sigcount cycle |
308 | ext_sig = ext_header + EXT_HEADER_SIZE + EXT_SIGNATURE_SIZE * i |
313 | If sum Then |
319 | Return 0 |
Name | Describe |
---|---|
scan_microcode | Get microcode matching with BSP's model. Only CPUs with the same model as* BSP can stay in the platform. |
generic_load_microcode |
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 |