]> 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:56:34 +0000 (06:56 +0000)
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 4 Dec 2008 06:56:34 +0000 (06:56 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6835 6f19259b-4bc3-4df7-8a09-765794883524

EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueBaseLib.h
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/IpfCache.c
EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/FlushCacheRange.s

index df07255a95e0fd910e92e0b6c1a40f7c83b7ce27..e5c15071a0c0d57005e35dbec46e632517720753 100644 (file)
@@ -3694,7 +3694,7 @@ CpuDeadLoop (
   -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
+  Address is returned. This function is only available on IPF.\r
 \r
   If Length is greater than (MAX_ADDRESS - Address + 1), then ASSERT().\r
 \r
@@ -3710,7 +3710,7 @@ CpuDeadLoop (
 **/\r
 VOID *\r
 EFIAPI\r
-IpfFlushCacheRange (\r
+AsmFlushCacheRange (\r
   IN      VOID                      *Address,\r
   IN      UINTN                     Length\r
   );\r
@@ -3722,7 +3722,7 @@ IpfFlushCacheRange (
   The cache line size affected is at least 32-bytes (aligned on a 32-byte boundary).\r
   An implementation may flush a larger region.  This function is only available on IPF.\r
 \r
-  @param Address       The Address of cache line to be flushed.\r
+  @param Address  The Address of cache line to be flushed.\r
 \r
   @return The address of FC instruction executed.\r
 \r
@@ -3740,7 +3740,7 @@ AsmFc (
   The cache line size affected is at least 32-bytes (aligned on a 32-byte boundary).\r
   An implementation may flush a larger region.  This function is only available on IPF.\r
 \r
-  @param Address       The Address of cache line to be flushed.\r
+  @param Address  The Address of cache line to be flushed.\r
 \r
   @return The address of FC.I instruction executed.\r
 \r
@@ -3761,7 +3761,7 @@ AsmFci (
   must either guarantee that Index is valid, or the caller must set up fault handlers to\r
   catch the faults.  This function is only available on IPF.\r
 \r
-  @param Index         The 8-bit Processor Identifier Register index to read.\r
+  @param Index   The 8-bit Processor Identifier Register index to read.\r
 \r
   @return The current value of Processor Identifier Register specified by Index.\r
 \r
index ebfaebdcdfc155e5857da5a32db09adc03d625cc..28f3654fadee339d51411b7b2c991d60fa11de64 100644 (file)
@@ -71,7 +71,7 @@ InvalidateInstructionCacheRange (
   IN      UINTN                     Length\r
   )\r
 {\r
-  return IpfFlushCacheRange (Address, Length);\r
+  return AsmFlushCacheRange (Address, Length);\r
 }\r
 \r
 /**\r
@@ -128,7 +128,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
@@ -184,7 +184,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
@@ -241,5 +241,5 @@ InvalidateDataCacheRange (
   IN      UINTN                     Length\r
   )\r
 {\r
-  return IpfFlushCacheRange (Address, Length);\r
+  return AsmFlushCacheRange (Address, Length);\r
 }\r
index 8c88f90a51576bcb0c4865e11da34e2863a13168..5ca0d84a56d48f0b9fb8d5d0ac3e2364ece4fe49 100644 (file)
@@ -31,7 +31,8 @@
 //  containing Address + Length -1 is invalidated. This function may choose to\r
 //  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
+//  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
@@ -90,5 +91,5 @@ DoneFlushingC:
       mov          r8   = in0       // return *Address\r
       NESTED_RETURN\r
 \r
-PROCEDURE_EXIT (IpfFlushCacheRange)\r
+PROCEDURE_EXIT (AsmFlushCacheRange)\r
 \r