函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\centaur.c Create Date:2022-07-27 09:07:20
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:centaur_set_mcr

函数原型:static void centaur_set_mcr(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type)

返回类型:void

参数:

类型参数名称
unsigned intreg
unsigned longbase
unsigned longsize
mtrr_typetype
79  如果size恒等于0则
81  high等于low等于0
82  否则
83  high等于base左移PAGE_SHIFT determines the page size
84  如果0 for winchip, 1 for winchip2 恒等于0则
86  low等于负size左移PAGE_SHIFT determines the page size 位按位或0x1f
87  否则
90  否则low等于负size左移PAGE_SHIFT determines the page size 位按位或0x09
94  high等于high
95  low等于low
96  wrmsr(MSR_IDT_MCR0 + reg, low, high)