Function report |
Source Code:arch\x86\kernel\cpu\mtrr\amd.c |
Create Date:2022-07-28 08:06:48 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:amd_set_mtrr - Set variable MTRR register on the local CPU.*@reg The register to set.*@base The base address of the region.*@size The size of the region. If this is 0 the region is disabled.*@type The type of the region.* Returns nothing.
Proto:static void amd_set_mtrr(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 |
71 | If size == 0 Then |
73 | Else |
83 | regs[reg] = -size >> 15 - PAGE_SHIFT determines the page size & 0x0001FFFC | base << PAGE_SHIFT determines the page size | type + 1 |
91 | wbinvd() |
92 | wrmsr(MSR_K6_UWCCR, regs[0], regs[1]) |
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 |