summaryrefslogtreecommitdiff
path: root/EdkCompatibilityPkg/Foundation
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-04 06:56:34 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-04 06:56:34 +0000
commit9e21d6d026cfb9ac16f0832d4a91dbfc1db81db5 (patch)
tree9b1a06f608b3f33983b7e9befb3d8e2c70816516 /EdkCompatibilityPkg/Foundation
parentcc39b88baa87d77ceeaffbe0d1fda188de6ab331 (diff)
downloadedk2-platforms-9e21d6d026cfb9ac16f0832d4a91dbfc1db81db5.tar.xz
Change function IpfFlushCacheRange() to AsmFlushCacheRange() follow the Mde_Lib_Spec.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6835 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'EdkCompatibilityPkg/Foundation')
-rw-r--r--EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueBaseLib.h10
-rw-r--r--EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/IpfCache.c8
-rw-r--r--EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/FlushCacheRange.s9
3 files changed, 14 insertions, 13 deletions
diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueBaseLib.h b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueBaseLib.h
index df07255a95..e5c15071a0 100644
--- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueBaseLib.h
+++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Include/Library/EdkIIGlueBaseLib.h
@@ -3694,7 +3694,7 @@ CpuDeadLoop (
-1 is invalidated. This function may choose to invalidate the entire
instruction cache if that is more efficient than invalidating the specified
range. If Length is 0, the no instruction cache lines are invalidated.
- Address is returned.
+ Address is returned. This function is only available on IPF.
If Length is greater than (MAX_ADDRESS - Address + 1), then ASSERT().
@@ -3710,7 +3710,7 @@ CpuDeadLoop (
**/
VOID *
EFIAPI
-IpfFlushCacheRange (
+AsmFlushCacheRange (
IN VOID *Address,
IN UINTN Length
);
@@ -3722,7 +3722,7 @@ IpfFlushCacheRange (
The cache line size affected is at least 32-bytes (aligned on a 32-byte boundary).
An implementation may flush a larger region. This function is only available on IPF.
- @param Address The Address of cache line to be flushed.
+ @param Address The Address of cache line to be flushed.
@return The address of FC instruction executed.
@@ -3740,7 +3740,7 @@ AsmFc (
The cache line size affected is at least 32-bytes (aligned on a 32-byte boundary).
An implementation may flush a larger region. This function is only available on IPF.
- @param Address The Address of cache line to be flushed.
+ @param Address The Address of cache line to be flushed.
@return The address of FC.I instruction executed.
@@ -3761,7 +3761,7 @@ AsmFci (
must either guarantee that Index is valid, or the caller must set up fault handlers to
catch the faults. This function is only available on IPF.
- @param Index The 8-bit Processor Identifier Register index to read.
+ @param Index The 8-bit Processor Identifier Register index to read.
@return The current value of Processor Identifier Register specified by Index.
diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/IpfCache.c b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/IpfCache.c
index ebfaebdcdf..28f3654fad 100644
--- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/IpfCache.c
+++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseCacheMaintenanceLib/IpfCache.c
@@ -71,7 +71,7 @@ InvalidateInstructionCacheRange (
IN UINTN Length
)
{
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
/**
@@ -128,7 +128,7 @@ WriteBackInvalidateDataCacheRange (
{
ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
/**
@@ -184,7 +184,7 @@ WriteBackDataCacheRange (
{
ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
/**
@@ -241,5 +241,5 @@ InvalidateDataCacheRange (
IN UINTN Length
)
{
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
diff --git a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/FlushCacheRange.s b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/FlushCacheRange.s
index 8c88f90a51..5ca0d84a56 100644
--- a/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/FlushCacheRange.s
+++ b/EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/BaseLib/Ipf/FlushCacheRange.s
@@ -31,7 +31,8 @@
// containing Address + Length -1 is invalidated. This function may choose to
// invalidate the entire instruction cache if that is more efficient than
// invalidating the specified range. If Length is 0, the no instruction cache
-// lines are invalidated. Address is returned.
+// lines are invalidated. Address is returned.
+// This function is only available on IPF.
//
// If Length is greater than (MAX_ADDRESS - Address + 1), then ASSERT().
//
@@ -46,12 +47,12 @@
//
// VOID *
// EFIAPI
-// IpfFlushCacheRange (
+// AsmFlushCacheRange (
// IN VOID *Address,
// IN UINTN Length
// );
//
-PROCEDURE_ENTRY (IpfFlushCacheRange)
+PROCEDURE_ENTRY (AsmFlushCacheRange)
NESTED_SETUP (5,8,0,0)
@@ -90,5 +91,5 @@ DoneFlushingC:
mov r8 = in0 // return *Address
NESTED_RETURN
-PROCEDURE_EXIT (IpfFlushCacheRange)
+PROCEDURE_EXIT (AsmFlushCacheRange)