summaryrefslogtreecommitdiff
path: root/MdePkg/Library
diff options
context:
space:
mode:
authorgikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-04 06:52:09 +0000
committergikidy <gikidy@6f19259b-4bc3-4df7-8a09-765794883524>2008-12-04 06:52:09 +0000
commitcc39b88baa87d77ceeaffbe0d1fda188de6ab331 (patch)
tree5a8764764b4e9ca7bd4b6197fb2dfdd8952c2ebc /MdePkg/Library
parenta694b670e1a14b3a4da306463d9760176a73bef3 (diff)
downloadedk2-cc39b88baa87d77ceeaffbe0d1fda188de6ab331.zip
edk2-cc39b88baa87d77ceeaffbe0d1fda188de6ab331.tar.gz
edk2-cc39b88baa87d77ceeaffbe0d1fda188de6ab331.tar.bz2
Change function IpfFlushCacheRange() to AsmFlushCacheRange() follow the Mde_Lib_Spec 0.61k
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6834 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library')
-rw-r--r--MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c8
-rw-r--r--MdePkg/Library/BaseLib/Ipf/FlushCacheRange.s7
2 files changed, 8 insertions, 7 deletions
diff --git a/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c b/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
index 8e999a4..9b940fc 100644
--- a/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
+++ b/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
@@ -68,7 +68,7 @@ InvalidateInstructionCacheRange (
)
{
ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
/**
@@ -125,7 +125,7 @@ WriteBackInvalidateDataCacheRange (
{
ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
/**
@@ -181,7 +181,7 @@ WriteBackDataCacheRange (
{
ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
/**
@@ -247,5 +247,5 @@ InvalidateDataCacheRange (
// Invalidation of a data cache range without writing back is not supported on
// IPF architecture, so write back and invalidate operation is performed.
//
- return IpfFlushCacheRange (Address, Length);
+ return AsmFlushCacheRange (Address, Length);
}
diff --git a/MdePkg/Library/BaseLib/Ipf/FlushCacheRange.s b/MdePkg/Library/BaseLib/Ipf/FlushCacheRange.s
index 72623f5..ebb1290 100644
--- a/MdePkg/Library/BaseLib/Ipf/FlushCacheRange.s
+++ b/MdePkg/Library/BaseLib/Ipf/FlushCacheRange.s
@@ -33,6 +33,7 @@
// 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.
+// This function is only available on IPF.
//
// If Length is greater than (MAX_ADDRESS - Address + 1), then ASSERT().
//
@@ -47,12 +48,12 @@
//
// VOID *
// EFIAPI
-// IpfFlushCacheRange (
+// AsmFlushCacheRange (
// IN VOID *Address,
// IN UINTN Length
// );
//
-PROCEDURE_ENTRY (IpfFlushCacheRange)
+PROCEDURE_ENTRY (AsmFlushCacheRange)
NESTED_SETUP (5,8,0,0)
@@ -91,5 +92,5 @@ DoneFlushingC:
mov r8 = in0 // return *Address
NESTED_RETURN
-PROCEDURE_EXIT (IpfFlushCacheRange)
+PROCEDURE_EXIT (AsmFlushCacheRange)