3 Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
5 SPDX-License-Identifier: BSD-2-Clause-Patent
10 #include <Protocol/Reset.h>
11 #include <Library/DebugLib.h>
12 #include <Library/UefiDriverEntryPoint.h>
13 #include <Library/UefiBootServicesTableLib.h>
14 #include <Library/EfiResetSystemLib.h>
18 Resets the entire platform.
20 @param ResetType The type of reset to perform.
21 @param ResetStatus The status code for the reset.
22 @param DataSize The size, in bytes, of WatchdogData.
23 @param ResetData For a ResetType of EfiResetCold, EfiResetWarm, or
24 EfiResetShutdown the data buffer starts with a Null-terminated
25 Unicode string, optionally followed by additional binary data.
31 IN EFI_RESET_TYPE ResetType
,
32 IN EFI_STATUS ResetStatus
,
34 IN VOID
*ResetData OPTIONAL
37 LibResetSystem (ResetType
, ResetStatus
, DataSize
, ResetData
);
46 IN EFI_HANDLE ImageHandle
,
47 IN EFI_SYSTEM_TABLE
*SystemTable
53 LibInitializeResetSystem (ImageHandle
, SystemTable
);
55 SystemTable
->RuntimeServices
->ResetSystem
= ResetSystemViaLib
;
58 Status
= gBS
->InstallMultipleProtocolInterfaces (
60 &gEfiResetArchProtocolGuid
,
64 ASSERT_EFI_ERROR (Status
);