**/\r
\r
\r
+//\r
+// Include common header file for this module.\r
+//\r
+#include <Base.h>\r
+#include <Library/CacheMaintenanceLib.h>\r
+#include <Library/BaseLib.h>\r
+#include <Library/DebugLib.h>\r
+\r
/**\r
Invalidates the entire instruction cache in cache coherency domain of the\r
calling CPU.\r
IN UINTN Length\r
)\r
{\r
- return IpfInvalidateInstructionCacheRange (Address, Length);\r
+ return IpfFlushCacheRange (Address, Length);\r
}\r
\r
/**\r
{\r
ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);\r
\r
- if (Length > 0) {\r
- WriteBackInvalidateDataCache ();\r
- }\r
- return Address;\r
+ return IpfFlushCacheRange (Address, Length);\r
}\r
\r
/**\r
{\r
ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);\r
\r
- if (Length > 0) {\r
- WriteBackDataCache ();\r
- }\r
- return Address;\r
+ return IpfFlushCacheRange (Address, Length);\r
}\r
\r
/**\r
IN UINTN Length\r
)\r
{\r
- return WriteBackInvalidateDataCacheRange (Address, Length);\r
+ return IpfFlushCacheRange (Address, Length);\r
}\r