]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Change function IpfFlushCacheRange() to AsmFlushCacheRange() follow the Mde_Lib_Spec...
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 4 Dec 2008 06:52:09 +0000 (06:52 +0000)
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 4 Dec 2008 06:52:09 +0000 (06:52 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6834 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/BaseLib.h
MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
MdePkg/Library/BaseLib/Ipf/FlushCacheRange.s

index 3cb2cdb154e53aae685c2505b296fd8534e66ef8..cc0e6eeaae78b6301a51c12b8770877aaa000243 100644 (file)
@@ -3608,21 +3608,19 @@ EFIAPI
 CpuDeadLoop (\r
   VOID\r
   );\r
-\r
 #if defined (MDE_CPU_IPF)\r
 \r
 /**\r
   Flush a range of  cache lines in the cache coherency domain of the calling\r
   CPU.\r
 \r
-  Invalidates the  cache lines specified by Address and Length. If Address is\r
-  not aligned on a cache line boundary, then entire cache line containing\r
-  Address is invalidated. If Address + Length is not aligned on a cache line\r
-  boundary, then the entire instruction cache line containing Address + Length\r
-  -1 is invalidated. This function may choose to invalidate the entire\r
-  instruction cache if that is more efficient than invalidating the specified\r
-  range. If Length is 0, the no instruction cache lines are invalidated.\r
-  Address is returned.\r
+  Flushes the cache lines specified by Address and Length.  If Address is not aligned \r
+  on a cache line boundary, then entire cache line containing Address is flushed.  \r
+  If Address + Length is not aligned on a cache line boundary, then the entire cache \r
+  line containing Address + Length - 1 is flushed.  This function may choose to flush \r
+  the entire cache if that is more efficient than flushing the specified range.  If \r
+  Length is 0, the no cache lines are flushed.  Address is returned.   \r
+  This function is only available on IPF.\r
 \r
   If Length is greater than (MAX_ADDRESS - Address + 1), then ASSERT().\r
 \r
@@ -3633,12 +3631,12 @@ CpuDeadLoop (
 \r
   @param  Length  The number of bytes to invalidate from the instruction cache.\r
 \r
-  @return Address\r
+  @return Address.\r
 \r
 **/\r
 VOID *\r
 EFIAPI\r
-IpfFlushCacheRange (\r
+AsmFlushCacheRange (\r
   IN      VOID                      *Address,\r
   IN      UINTN                     Length\r
   );\r
index 8e999a40402b251dcf2f0c45d1d173200bea04bb..9b940fc3f76d49ed208a3759b268141b6d48d27b 100644 (file)
@@ -68,7 +68,7 @@ InvalidateInstructionCacheRange (
   )\r
 {\r
   ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);\r
-  return IpfFlushCacheRange (Address, Length);\r
+  return AsmFlushCacheRange (Address, Length);\r
 }\r
 \r
 /**\r
@@ -125,7 +125,7 @@ WriteBackInvalidateDataCacheRange (
 {\r
   ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);\r
 \r
-  return IpfFlushCacheRange (Address, Length);\r
+  return AsmFlushCacheRange (Address, Length);\r
 }\r
 \r
 /**\r
@@ -181,7 +181,7 @@ WriteBackDataCacheRange (
 {\r
   ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);\r
 \r
-  return IpfFlushCacheRange (Address, Length);\r
+  return AsmFlushCacheRange (Address, Length);\r
 }\r
 \r
 /**\r
@@ -247,5 +247,5 @@ InvalidateDataCacheRange (
   // Invalidation of a data cache range without writing back is not supported on\r
   // IPF architecture, so write back and invalidate operation is performed.\r
   //\r
-  return IpfFlushCacheRange (Address, Length);\r
+  return AsmFlushCacheRange (Address, Length);\r
 }\r
index 72623f5a2782d17cb664c1ded5eda48d7c717e16..ebb1290728b4ebb209c4bea1a2e48cdb3ee57388 100644 (file)
@@ -33,6 +33,7 @@
 //  invalidate the entire instruction cache if that is more efficient than\r
 //  invalidating the specified range. If Length is 0, the no instruction cache\r
 //  lines are invalidated. Address is returned.\r
+//  This function is only available on IPF.\r
 //\r
 //  If Length is greater than (MAX_ADDRESS - Address + 1), then ASSERT().\r
 //\r
 //  \r
 //  VOID *\r
 //  EFIAPI\r
-//  IpfFlushCacheRange (\r
+//  AsmFlushCacheRange (\r
 //    IN      VOID                      *Address,\r
 //    IN      UINTN                     Length\r
 //    );\r
 //\r
-PROCEDURE_ENTRY (IpfFlushCacheRange)\r
+PROCEDURE_ENTRY (AsmFlushCacheRange)\r
 \r
       NESTED_SETUP (5,8,0,0)\r
             \r
@@ -91,5 +92,5 @@ DoneFlushingC:
       mov          r8   = in0       // return *Address\r
       NESTED_RETURN\r
 \r
-PROCEDURE_EXIT (IpfFlushCacheRange)\r
+PROCEDURE_EXIT (AsmFlushCacheRange)\r
 \r