From 4ac4deb706fcd6595d5ee96a3b322f37026561a3 Mon Sep 17 00:00:00 2001 From: lgao4 Date: Fri, 11 Jun 2010 07:47:06 +0000 Subject: Add more check to make sure code run safely. git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@10574 6f19259b-4bc3-4df7-8a09-765794883524 --- .../Foundation/Library/RuntimeDxe/EfiRuntimeLib/Debug.c | 6 +++--- .../Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/RuntimeLib.c | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'EdkCompatibilityPkg/Foundation/Library/RuntimeDxe') diff --git a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Debug.c b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Debug.c index cc903cfd67..ce5f049039 100644 --- a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Debug.c +++ b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Debug.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2004, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2010, 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 @@ -66,9 +66,9 @@ Returns: ); // - // Put break point in module that contained the error. + // Put dead loop in module that contained the error. // - EFI_BREAKPOINT (); + EFI_DEADLOOP (); } VOID diff --git a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/RuntimeLib.c b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/RuntimeLib.c index cd548dac2a..2e63672582 100644 --- a/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/RuntimeLib.c +++ b/EdkCompatibilityPkg/Foundation/Library/RuntimeDxe/EfiRuntimeLib/Ipf/RuntimeLib.c @@ -1,6 +1,6 @@ /*++ -Copyright (c) 2004 - 2005, Intel Corporation. All rights reserved.
+Copyright (c) 2004 - 2010, 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 @@ -947,6 +947,7 @@ Returns: EFI_GUID Guid = EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID; ReturnReg = EfiCallEsalService (&Guid, IoRead, (UINT64) Width, Address, Count, (UINT64) Buffer, 0, 0, 0); + ASSERT (ReturnReg.Status == EFI_SAL_SUCCESS); return ReturnReg.Status; @@ -1015,6 +1016,7 @@ Returns: EFI_GUID Guid = EFI_EXTENDED_SAL_BASE_IO_SERVICES_PROTOCOL_GUID; ReturnReg = EfiCallEsalService (&Guid, MemRead, (UINT64) Width, Address, Count, (UINT64) Buffer, 0, 0, 0); + ASSERT (ReturnReg.Status == EFI_SAL_SUCCESS); return ReturnReg.Status; -- cgit v1.2.3