Function report |
Source Code:arch\x86\kernel\cpu\mtrr\centaur.c |
Create Date:2022-07-28 08:07:09 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:centaur_set_mcr
Proto:static void centaur_set_mcr(unsigned int reg, unsigned long base, unsigned long size, mtrr_type type)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned int | reg | |
| unsigned long | base | |
| unsigned long | size | |
| mtrr_type | type |
| 79 | If size == 0 Then |
| 82 | Else |
| 84 | If 0 for winchip, 1 for winchip2 == 0 Then |
| 86 | low = -size << PAGE_SHIFT determines the page size | 0x1f |
| 87 | Else |
| 88 | If type == MTRR memory types, which are defined in SDM Then low = -size << PAGE_SHIFT determines the page size | 0x02 |
| 90 | Else low = -size << PAGE_SHIFT determines the page size | 0x09 |
| 96 | wrmsr(MSR_IDT_MCR0 + reg, low, high) |
| 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 |