Revision: 14656
http://sourceforge.net/p/edk2/code/14656
Author: lgao4
Date: 2013-09-11 05:56:52 +0000 (Wed, 11 Sep 2013)
Log Message:
-----------
Update UpdateCapsule() service return status to follow UEFI2.3.1 D.
Signed-off-by: Liming Gao <[email protected]>
Reviewed-by: Elvin Li <[email protected]>
Reviewed-by: Chao Zhang <[email protected]>
Modified Paths:
--------------
trunk/edk2/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c
Modified: trunk/edk2/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c
===================================================================
--- trunk/edk2/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c
2013-09-11 05:56:27 UTC (rev 14655)
+++ trunk/edk2/MdeModulePkg/Universal/CapsuleRuntimeDxe/CapsuleService.c
2013-09-11 05:56:52 UTC (rev 14656)
@@ -4,7 +4,7 @@
It installs the Capsule Architectural Protocol defined in PI1.0a to signify
the capsule runtime services are ready.
-Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.<BR>
+Copyright (c) 2006 - 2013, Intel Corporation. All rights reserved.<BR>
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
@@ -73,6 +73,11 @@
@retval EFI_INVALID_PARAMETER CapsuleCount is Zero.
@retval EFI_INVALID_PARAMETER For across reset capsule image,
ScatterGatherList is NULL.
@retval EFI_UNSUPPORTED CapsuleImage is not recognized by the firmware.
+ @retval EFI_OUT_OF_RESOURCES When ExitBootServices() has been previously
called this error indicates the capsule
+ is compatible with this platform but is not
capable of being submitted or processed
+ in runtime. The caller may resubmit the
capsule prior to ExitBootServices().
+ @retval EFI_OUT_OF_RESOURCES When ExitBootServices() has not been
previously called then this error indicates
+ the capsule is compatible with this platform
but there are insufficient resources to process.
**/
EFI_STATUS
@@ -140,7 +145,7 @@
//
if ((CapsuleHeader->Flags & CAPSULE_FLAGS_PERSIST_ACROSS_RESET) == 0) {
if (EfiAtRuntime ()) {
- Status = EFI_UNSUPPORTED;
+ Status = EFI_OUT_OF_RESOURCES;
} else {
Status = ProcessCapsuleImage(CapsuleHeader);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits