X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FResetSystemRuntimeDxe%2FResetSystem.c;h=aa1ca162d6aa8e037654cb746dfe774e1130fa9f;hb=92141e17772f766960bb6984543d89af21ccfb21;hp=957cb0b4c5098623b3a699903c86dfd43db49b3c;hpb=51a0c5f28c213b926aeb9bcfa532ea9db5a29a8f;p=mirror_edk2.git diff --git a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c index 957cb0b4c5..aa1ca162d6 100644 --- a/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c +++ b/MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c @@ -1,7 +1,7 @@ /** @file Reset Architectural Protocol implementation - Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.
+ Copyright (c) 2006 - 2012, 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 @@ -65,37 +65,6 @@ InitializeResetSystem ( return Status; } -/** - Reset system for capsule update. - - @param[in] CapsuleDataPtr Pointer to the capsule block descriptors. - -**/ -VOID -CapsuleReset ( - IN UINTN CapsuleDataPtr - ) -{ - // - // This implementation assumes that we're using a variable - // to indicate capsule updates. - // - gRT->SetVariable ( - EFI_CAPSULE_VARIABLE_NAME, - &gEfiCapsuleVendorGuid, - EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS, - sizeof (UINTN), - (VOID *) &CapsuleDataPtr - ); - - EnterS3WithImmediateWake (); - - // - // Should not return - // - CpuDeadLoop (); -} - /** Put the system into S3 power state. **/ @@ -135,6 +104,11 @@ ResetSystem ( EFI_STATUS Status; UINTN Size; UINTN CapsuleDataPtr; + + // + // Indicate reset system runtime service is called. + // + REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_SOFTWARE_EFI_RUNTIME_SERVICE | EFI_SW_RS_PC_RESET_SYSTEM)); switch (ResetType) { case EfiResetWarm: