X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdePkg%2FLibrary%2FBaseCacheMaintenanceLib%2FIpfCache.c;h=5be001490523df2fcb8860f9451c0226c3cc4223;hb=c7a54f2560479abe75b51383940b057cac321d22;hp=0c6f0e4dc8b195e6ab19a339af8ddfd84a45cfdd;hpb=cd4903c497c9ace4016efb340d6e9cfd561a9833;p=mirror_edk2.git diff --git a/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c b/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c index 0c6f0e4dc8..5be0014905 100644 --- a/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c +++ b/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c @@ -13,6 +13,14 @@ **/ +// +// Include common header file for this module. +// +#include +#include +#include +#include + /** Invalidates the entire instruction cache in cache coherency domain of the calling CPU. @@ -62,7 +70,7 @@ InvalidateInstructionCacheRange ( IN UINTN Length ) { - return IpfInvalidateInstructionCacheRange (Address, Length); + return IpfFlushCacheRange (Address, Length); } /** @@ -119,10 +127,7 @@ WriteBackInvalidateDataCacheRange ( { ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1); - if (Length > 0) { - WriteBackInvalidateDataCache (); - } - return Address; + return IpfFlushCacheRange (Address, Length); } /** @@ -178,10 +183,7 @@ WriteBackDataCacheRange ( { ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1); - if (Length > 0) { - WriteBackDataCache (); - } - return Address; + return IpfFlushCacheRange (Address, Length); } /** @@ -238,5 +240,5 @@ InvalidateDataCacheRange ( IN UINTN Length ) { - return WriteBackInvalidateDataCacheRange (Address, Length); + return IpfFlushCacheRange (Address, Length); }