]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Nt32Pkg/ResetRuntimeDxe/reset.c
Optimize the code to not call StrToBuf when DataLength is 0.
[mirror_edk2.git] / Nt32Pkg / ResetRuntimeDxe / reset.c
index 0ee9a4e846aa595b816b4da50004cf30077ac9d1..468f7128fb96b87d3b97734a1db4e7f0b5c361fe 100644 (file)
@@ -1,7 +1,7 @@
 /**@file\r
 \r
-Copyright (c) 2006, Intel Corporation                                                         \r
-All rights reserved. This program and the accompanying materials                          \r
+Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>\r
+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
 http://opensource.org/licenses/bsd-license.php                                            \r
@@ -19,7 +19,7 @@ Abstract:
 \r
 **/\r
 \r
-#include <PiDxe.h>\r
+#include <Uefi.h>\r
 #include <WinNtDxe.h>\r
 #include <Protocol/Reset.h>\r
 #include <Library/DebugLib.h>\r
@@ -35,14 +35,13 @@ InitializeNtReset (
   IN EFI_SYSTEM_TABLE  *SystemTable\r
   );\r
 \r
-STATIC\r
-EFI_STATUS\r
+VOID\r
 EFIAPI\r
 WinNtResetSystem (\r
   IN EFI_RESET_TYPE   ResetType,\r
   IN EFI_STATUS       ResetStatus,\r
   IN UINTN            DataSize,\r
-  IN CHAR16           *ResetData OPTIONAL\r
+  IN VOID             *ResetData OPTIONAL\r
   );\r
 \r
 \r
@@ -85,14 +84,13 @@ Returns:
   return Status;\r
 }\r
 \r
-STATIC\r
-EFI_STATUS\r
+VOID\r
 EFIAPI\r
 WinNtResetSystem (\r
   IN EFI_RESET_TYPE   ResetType,\r
   IN EFI_STATUS       ResetStatus,\r
   IN UINTN            DataSize,\r
-  IN CHAR16           *ResetData OPTIONAL\r
+  IN VOID             *ResetData OPTIONAL\r
   )\r
 /*++\r
 \r
@@ -124,5 +122,5 @@ Returns:
   //\r
   // Should never go here\r
   //\r
-  return EFI_SUCCESS;\r
+  ASSERT (FALSE);\r
 }\r