]>
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
10 Flushes a cache line from all the instruction and data caches within the
11 coherency domain of the CPU.
13 Flushed the cache line specified by LinearAddress, and returns LinearAddress.
14 This function is only available on IA-32 and x64.
16 @param LinearAddress The address of the cache line to flush. If the CPU is
17 in a physical addressing mode, then LinearAddress is a
18 physical address. If the CPU is in a virtual
19 addressing mode, then LinearAddress is a virtual
27 IN VOID
*LinearAddress
31 // If the CPU does not support CLFLUSH instruction,
32 // then promote flush range to flush entire cache.
39 mov eax
, dword ptr
[LinearAddress
]