]>
git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BaseLib/Ia32/FlushCacheLine.c
2 AsmFlushCacheLine function
4 Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
13 Flushes a cache line from all the instruction and data caches within the
14 coherency domain of the CPU.
16 Flushed the cache line specified by LinearAddress, and returns LinearAddress.
17 This function is only available on IA-32 and x64.
19 @param LinearAddress The address of the cache line to flush. If the CPU is
20 in a physical addressing mode, then LinearAddress is a
21 physical address. If the CPU is in a virtual
22 addressing mode, then LinearAddress is a virtual
30 IN VOID
*LinearAddress
34 // If the CPU does not support CLFLUSH instruction,
35 // then promote flush range to flush entire cache.
42 mov eax
, dword ptr
[LinearAddress
]