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:19
Last Modify:2022-05-18 17:45:43 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:generic_set_all

Proto:static void generic_set_all(void)

Type:void

Parameter:Nothing

800  local_irq_save(flags)
801  Since we are disabling the cache don't allow any interrupts,* they would run extremely slow and would only increase the pain.* The caller must ensure that local interrupts are disabled and* are reenabled after post_set() has been called.
804  mask = 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.
807  pat_init()
809  post_set()
810  local_irq_restore(flags)
813  When count < size of mask * 8 cycle
814  If mask & 0x01 Then Atomically set a bit in memory
816  mask >>= 1