]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
Add BasePalCallLibNull instance in MdePkg. It is useful when building IPF components...
[mirror_edk2.git] / MdePkg / Library / BaseCacheMaintenanceLib / IpfCache.c
index e714eae02b592c5e56895bb086f492526cdb642b..17ef43d9689c45c8e32c447aafbcb1f6b8f9418c 100644 (file)
 //\r
 // Include common header file for this module.\r
 //\r
-#include "CommonHeader.h"\r
+#include <Base.h>\r
+#include <Library/CacheMaintenanceLib.h>\r
+#include <Library/BaseLib.h>\r
+#include <Library/DebugLib.h>\r
+#include <Library/PalCallLib.h>\r
 \r
 /**\r
   Invalidates the entire instruction cache in cache coherency domain of the\r
@@ -32,7 +36,7 @@ InvalidateInstructionCache (
   VOID\r
   )\r
 {\r
-  PalCallStatic (NULL, 1, 1, 1, 0);\r
+  PalCall (PAL_CACHE_FLUSH, PAL_CACHE_FLUSH_INSTRUCTION_ALL, PAL_CACHE_FLUSH_INVALIDATE_LINES, 0);\r
 }\r
 \r
 /**\r
@@ -86,7 +90,7 @@ WriteBackInvalidateDataCache (
   VOID\r
   )\r
 {\r
-  PalCallStatic (NULL, 1, 2, 1, 0);\r
+  PalCall (PAL_CACHE_FLUSH, PAL_CACHE_FLUSH_DATA_ALL, PAL_CACHE_FLUSH_INVALIDATE_LINES, 0);\r
 }\r
 \r
 /**\r
@@ -143,7 +147,7 @@ WriteBackDataCache (
   VOID\r
   )\r
 {\r
-  PalCallStatic (NULL, 1, 2, 0, 0);\r
+  PalCall (PAL_CACHE_FLUSH, PAL_CACHE_FLUSH_DATA_ALL, PAL_CACHE_FLUSH_NO_INVALIDATE_LINES | PAL_CACHE_FLUSH_NO_INTERRUPT, 0);\r
 }\r
 \r
 /**\r