]> git.proxmox.com Git - mirror_edk2.git/commitdiff
1) Add in ASSERT conditions
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 22 Aug 2008 13:44:57 +0000 (13:44 +0000)
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>
Fri, 22 Aug 2008 13:44:57 +0000 (13:44 +0000)
2) Add GUID and Library Class in INF file.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@5712 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Library/DxePiLib/DxePiLib.c
MdePkg/Library/DxePiLib/DxePiLib.inf

index b192028880a79e2c3c9566c2a18ce4b451ae6f34..f8a383a887629b7b442e895ade667bda08aa5960 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Mde PI library functions.\r
 \r
-  Copyright (c) 2007, Intel Corporation<BR>\r
+  Copyright (c) 2007 - 2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -111,6 +111,10 @@ GetSectionFromFv (
   EFI_FIRMWARE_VOLUME2_PROTOCOL *Fv;\r
   UINT32                        AuthenticationStatus;\r
 \r
+  ASSERT (NameGuid != NULL);\r
+  ASSERT (Buffer != NULL);\r
+  ASSERT (Size != NULL);\r
+  \r
   ASSERT (FvHandle != NULL);\r
 \r
   Status = gBS->HandleProtocol (\r
index c1d0a716d29c3d6fb7c559fae5679e27ebb0ff88..c5172ea1a5cf57aeb2ac10c62b9c0f3f74c1b9f3 100644 (file)
@@ -3,7 +3,7 @@
 #\r
 # Library to abstract utility functions that is related to PI Specification.\r
 #\r
-# Copyright (c) 2007, Intel Corporation.\r
+# Copyright (c) 2007 - 2008, Intel Corporation.\r
 #\r
 #  All rights reserved. This program and the accompanying materials\r
 #  are licensed and made available under the terms and conditions of the BSD License\r
@@ -40,7 +40,9 @@
 [LibraryClasses]\r
   MemoryAllocationLib\r
   DebugLib\r
+  UefiBootServicesTableLib\r
 \r
 [Protocols]\r
   gEfiFirmwareVolume2ProtocolGuid               # ALWAYS_CONSUMED\r
+  gEfiLoadedImageProtocolGuid\r
 \r