Function report |
Source Code:arch\x86\kernel\cpu\amd.c |
Create Date:2022-07-28 07:58:08 |
| 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_k6
Proto:static void init_amd_k6(struct cpuinfo_x86 *c)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct cpuinfo_x86 * | c |
| 120 | mbytes = get_num_physpages() >> 20 - PAGE_SHIFT determines the page size |
| 122 | If x86_model < 6 Then |
| 124 | If x86_model == 0 Then |
| 125 | clear_cpu_cap(c, Onboard APIC ) |
| 126 | set_cpu_cap(c, Page Global Enable ) |
| 128 | Return |
| 131 | If x86_model == 6 && x86_stepping == 1 Then |
| 132 | K6_BUG_LOOP = 1000000 |
| 137 | pr_info("AMD K6 stepping B detected - ") |
| 144 | n = K6_BUG_LOOP |
| 147 | d = dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer |
| 149 | f_vide() |
| 150 | d2 = dtsc() - returns the current TSC without ordering constraints* rdtsc() returns the result of RDTSC as a 64-bit integer |
| 153 | If d > 20 * K6_BUG_LOOP Then Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("system stability may be impaired when more than 32 MB are used.\n") |
| 155 | Else Like KERN_CONT, pr_cont() should only be used when continuing* a line with no newline ('\n') enclosed. Otherwise it defaults* back to KERN_DEFAULT.("probably OK (after B9730xxxx).\n") |
| 160 | If x86_model < 8 || x86_model == 8 && x86_stepping < 8 Then |
| 167 | If (l & 0x0000FFFF) == 0 Then |
| 177 | Return |
| 180 | If x86_model == 8 && x86_stepping > 7 || x86_model == 9 || x86_model == 13 Then |
| 188 | If (l & 0xFFFF0000) == 0 Then |
| 199 | Return |
| 202 | If x86_model == 10 Then |
| 205 | Return |
| Name | Describe |
|---|---|
| init_amd |
| 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 |