From 287f4f47b42d87c670b2cb4b440f4fd0288cfd01 Mon Sep 17 00:00:00 2001 From: xli24 Date: Thu, 4 Jun 2009 14:29:12 +0000 Subject: Add ASSERT check for AsmFlushCacheRange(). git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@8465 6f19259b-4bc3-4df7-8a09-765794883524 --- MdePkg/Library/BaseCacheMaintenanceLib/IpfCache.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'MdePkg/Library/BaseCacheMaintenanceLib') 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
+ Copyright (c) 2006 - 2009, Intel Corporation
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. -- cgit v1.2.3