函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:cpu_detect_cache_sizes

函数原型:void cpu_detect_cache_sizes(struct cpuinfo_x86 *c)

返回类型:void

参数:

类型参数名称
struct cpuinfo_x86 *c
672  n等于Max extended CPUID function supported:
674  如果n大于等于0x80000005则
675  cpuid(0x80000005, & dummy, & ebx, & ecx, & edx)
676  KB - valid for CPUS which support this call: 等于ecx右移24位的值加edx右移24位的值
679  Number of 4K pages in DTLB/ITLB combined(in pages): 等于0
683  如果n小于0x80000006则返回
686  cpuid(0x80000006, & dummy, & ebx, & ecx, & edx)
687  l2size等于ecx右移16位
690  Number of 4K pages in DTLB/ITLB combined(in pages): 加等于ebx右移16位按位与0xfff的值加ebx按位与0xfff的值
704  KB - valid for CPUS which support this call: 等于l2size
调用者
名称描述
default_init
init_amd
init_hygon
init_nscHandle National Semiconductor branded processors
init_c3
init_transmeta
init_zhaoxin_cap
init_intel_cacheinfo