Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\cpu\mtrr\generic.c Create Date:2022-07-28 08:06:17
Last Modify:2022-05-18 17:45:43 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:set_mtrr_state - Set the MTRR state for this CPU.* NOTE: The CPU must already be in a safe state for MTRR changes.* RETURNS: 0 if no changes made, else a mask indicating what was changed.

Proto:static unsigned long set_mtrr_state(void)

Type:unsigned long

Parameter:Nothing

693  change_mask = 0
696  When i < num_var_ranges cycle
697  If Set the MSR pair relating to a var range.* Returns true if changes are made. Then change_mask |= MTRR_CHANGE_MASK_VARIABLE
701  If have_fixed && set_fixed_ranges - checks & updates the fixed-range MTRRs if they* differ from the saved set*@frs: pointer to fixed-range MTRR values, saved by get_fixed_ranges() Then change_mask |= MTRR_CHANGE_MASK_FIXED
708  If (deftype_lo & 0xff) != def_type || (deftype_lo & 0xc00) >> 10 != enabled Then
711  deftype_lo = deftype_lo & ~0xcff | def_type | enabled << 10
713  change_mask |= MTRR_CHANGE_MASK_DEFTYPE
716  Return change_mask
Caller
NameDescribe
generic_set_all