Function report |
Source Code:arch\x86\kernel\cpu\amd.c |
Create Date:2022-07-28 07:58:25 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:init_amd
Proto:static void init_amd(struct cpuinfo_x86 *c)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuinfo_x86 * | c |
| 908 | early_init_amd(c) |
| 914 | clear_cpu_cap(c, 0 * 32 + 31) |
| 916 | If CPU family >= 0x10 Then set_cpu_cap(c, REP microcode works well ) |
| 920 | apicid = hard_smp_processor_id() |
| 923 | If CPU family < 6 Then clear_cpu_cap(c, Machine Check Exception ) |
| 927 | Case CPU family == 4 |
| 927 | init_amd_k5(c) |
| 927 | Break |
| 928 | Case CPU family == 5 |
| 928 | init_amd_k6(c) |
| 928 | Break |
| 929 | Case CPU family == 6 |
| 929 | init_amd_k7(c) |
| 929 | Break |
| 930 | Case CPU family == 0xf |
| 930 | init_amd_k8(c) |
| 930 | Break |
| 931 | Case CPU family == 0x10 |
| 931 | init_amd_gh(c) |
| 931 | Break |
| 932 | Case CPU family == 0x12 |
| 932 | init_amd_ln(c) |
| 932 | Break |
| 933 | Case CPU family == 0x15 |
| 933 | init_amd_bd(c) |
| 933 | Break |
| 934 | Case CPU family == 0x16 |
| 934 | init_amd_jg(c) |
| 934 | Break |
| 935 | Case CPU family == 0x17 |
| 935 | init_amd_zn(c) |
| 935 | Break |
| 942 | If CPU family >= 6 && Not cpu_has(c, Always save/restore FP error pointers ) Then set_cpu_bug(c, FXSAVE leaks FOP/FIP/FOP ) |
| 945 | cpu_detect_cache_sizes(c) |
| 949 | srat_detect_node(c) |
| 951 | init_amd_cacheinfo(c) |
| 971 | If CPU family > 0x11 Then set_cpu_cap(c, Always Running APIC Timer ) |
| 975 | If Not cpu_has(c, 3DNow prefetch instructions ) Then If cpu_has(c, 3DNow ) || cpu_has(c, Long Mode (x86-64, 64-bit support) ) Then |
| 980 | If Not cpu_has(c, "" Xen paravirtual guest ) Then set_cpu_bug(c, SYSRET doesn't fix up SS attrs ) |
| 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 |