函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\cacheinfo.c Create Date:2022-07-27 08:54:09
Last Modify:2020-03-16 20:07:28 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:amd_cpuid4

函数原型:static void amd_cpuid4(int leaf, union _cpuid4_leaf_eax *eax, union _cpuid4_leaf_ebx *ebx, union _cpuid4_leaf_ecx *ecx)

返回类型:void

参数:

类型参数名称
intleaf
union _cpuid4_leaf_eax *eax
union _cpuid4_leaf_ebx *ebx
union _cpuid4_leaf_ecx *ecx
239  l1等于l1d
241  full等于0
242  full等于0
243  full等于0
245  cpuid(0x80000005, & dummy, & dummy, & val, & val)
246  cpuid(0x80000006, & dummy, & dummy, & val, & val)
249  :leaf恒等于1
250  l1等于l1i
252  :leaf恒等于0
253  如果非val则返回
255  assoc等于assocs[assoc]
256  line_size等于line_size
257  lines_per_tag等于lines_per_tag
258  size_in_kb等于size_in_kb
259  退出
260  :leaf恒等于2
261  如果非val则返回
263  assoc等于assocs[assoc]
264  line_size等于line_size
265  lines_per_tag等于lines_per_tag
267  size_in_kb等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.( KB - valid for CPUS which support this call: )
268  退出
269  :leaf恒等于3
270  如果非val则返回
272  assoc等于assocs[assoc]
273  line_size等于line_size
274  lines_per_tag等于lines_per_tag
275  size_in_kb等于size_encoded乘512
277  size_in_kb等于size_in_kb右移1位
278  assoc等于assoc右移1位
280  退出
281  默认
282  返回
285  is_self_initializing等于1
286  type等于types[leaf]
287  level等于levels[leaf]
288  num_threads_sharing等于0
289  num_cores_on_die等于Operations for contexts that are safe from preemption/interrupts. These* operations verify that preemption is disabled.(cpuid returned max cores value: )减1
292  如果assoc恒等于0xffff则is_fully_associative等于1
294  coherency_line_size等于line_size减1
295  ways_of_associativity等于assoc减1
296  physical_line_partition等于lines_per_tag减1
297  number_of_sets等于size_in_kb乘1024除line_sizeways_of_associativity加1的和减1
调用者
名称描述
cpuid4_cache_lookup_regs