]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/ResetSystemRuntimeDxe/ResetSystem.c
MdeModulePkg/FvSimpleFileSystemDxe: Fixed ARM compiler error
[mirror_edk2.git] / MdeModulePkg / Universal / ResetSystemRuntimeDxe / ResetSystem.c
index 957cb0b4c5098623b3a699903c86dfd43db49b3c..aa1ca162d6aa8e037654cb746dfe774e1130fa9f 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Reset Architectural Protocol implementation\r
 \r
-  Copyright (c) 2006 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2006 - 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -65,37 +65,6 @@ InitializeResetSystem (
   return Status;\r
 }\r
 \r
-/**\r
-  Reset system for capsule update.\r
-\r
-  @param[in] CapsuleDataPtr  Pointer to the capsule block descriptors.\r
-                            \r
-**/\r
-VOID\r
-CapsuleReset (\r
-  IN UINTN   CapsuleDataPtr\r
-  )\r
-{\r
-  //\r
-  // This implementation assumes that we're using a variable\r
-  // to indicate capsule updates.\r
-  //\r
-  gRT->SetVariable (\r
-         EFI_CAPSULE_VARIABLE_NAME,\r
-         &gEfiCapsuleVendorGuid,\r
-         EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,\r
-         sizeof (UINTN),\r
-         (VOID *) &CapsuleDataPtr\r
-         );\r
-\r
-  EnterS3WithImmediateWake ();\r
-\r
-  //\r
-  // Should not return\r
-  //\r
-  CpuDeadLoop ();\r
-}\r
-\r
 /**\r
   Put the system into S3 power state.                            \r
 **/\r
@@ -135,6 +104,11 @@ ResetSystem (
   EFI_STATUS    Status;\r
   UINTN         Size;\r
   UINTN         CapsuleDataPtr;\r
+  \r
+  //\r
+  // Indicate reset system runtime service is called.\r
+  //\r
+  REPORT_STATUS_CODE (EFI_PROGRESS_CODE, (EFI_SOFTWARE_EFI_RUNTIME_SERVICE | EFI_SW_RS_PC_RESET_SYSTEM));\r
 \r
   switch (ResetType) {\r
   case EfiResetWarm:\r