Function report |
Source Code:arch\x86\kernel\cpu\microcode\amd.c |
Create Date:2022-07-28 08:09:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:This scans the ucode blob for the proper container as we can have multiple* containers glued together. Returns the equivalence ID from the equivalence* table or 0 if none found.* Returns the amount of bytes consumed while scanning. @desc contains all the
Proto:static size_t parse_container(u8 *ucode, size_t size, struct cont_desc *desc)
Type:size_t
Parameter:
| Type | Parameter | Name |
|---|---|---|
| u8 * | ucode | |
| size_t | size | |
| struct cont_desc * | desc |
| 304 | If Not Check whether there is a valid, non-truncated CPU equivalence table at the* beginning of @buf of size @buf_size. Set @early to use this function in the* early path. Then Return 0 |
| 309 | entry = buf + CONTAINER_HDR_SZ |
| 310 | num_entries = hdr[2] / sizeof(structequiv_cpu_entry) |
| 317 | eq_id = find_equiv_id( & table, cpuid_1_eax) |
| 319 | buf += hdr[2] + CONTAINER_HDR_SZ |
| 320 | size -= hdr[2] + CONTAINER_HDR_SZ |
| 331 | ret = Verify the patch in @buf.* Returns:* negative: on error* positive: patch is not for this family, skip it* 0: success |
| 332 | If ret < 0 Then |
| 337 | Go to out |
| 338 | Else if ret > 0 Then |
| 339 | Go to skip |
| 342 | mc = buf + SECTION_HDR_SIZE |
| 343 | If eq_id == processor_rev_id Then |
| 344 | psize = patch_size |
| 348 | skip : |
| 350 | buf += patch_size + SECTION_HDR_SIZE |
| 351 | size -= patch_size + SECTION_HDR_SIZE |
| 361 | If mc Then |
| 368 | out : |
| Name | Describe |
|---|---|
| scan_containers | Scan the ucode blob for the proper container as we can have multiple* containers glued together. |
| 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 |