summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
diff options
context:
space:
mode:
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-04 14:29:12 +0000
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>2009-06-04 14:29:12 +0000
commit287f4f47b42d87c670b2cb4b440f4fd0288cfd01 (patch)
tree6d267ece238d15bcbe10a4841a91b90ebc548657 /MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
parent63fffe4e7227291ae5a74d0ee1b44ec2af0eff6a (diff)
downloadedk2-287f4f47b42d87c670b2cb4b440f4fd0288cfd01.tar.gz
edk2-287f4f47b42d87c670b2cb4b440f4fd0288cfd01.tar.bz2
edk2-287f4f47b42d87c670b2cb4b440f4fd0288cfd01.zip
Add ASSERT check for AsmFlushCacheRange().
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8465 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c')
-rw-r--r--MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c b/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
index 1e5241832f..fe14ecf301 100644
--- a/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
+++ b/MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c
@@ -1,7 +1,7 @@
/** @file
Cache Maintenance Functions.
- Copyright (c) 2006 - 2008, Intel Corporation<BR>
+ Copyright (c) 2006 - 2009, Intel Corporation<BR>
All rights reserved. This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License
which accompanies this distribution. The full text of the license may be found at
@@ -64,7 +64,6 @@ InvalidateInstructionCacheRange (
IN UINTN Length
)
{
- ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
return AsmFlushCacheRange (Address, Length);
}
@@ -120,8 +119,6 @@ WriteBackInvalidateDataCacheRange (
IN UINTN Length
)
{
- ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
-
return AsmFlushCacheRange (Address, Length);
}
@@ -176,8 +173,6 @@ WriteBackDataCacheRange (
IN UINTN Length
)
{
- ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
-
return AsmFlushCacheRange (Address, Length);
}
@@ -239,7 +234,6 @@ InvalidateDataCacheRange (
IN UINTN Length
)
{
- ASSERT (Length <= MAX_ADDRESS - (UINTN)Address + 1);
//
// Invalidation of a data cache range without writing back is not supported on
// IPF architecture, so write back and invalidate operation is performed.