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>
17 Resets the entire platform.
19 @param ResetType The type of reset to perform.
20 @param ResetStatus The status code for the reset.
21 @param DataSize The size, in bytes, of WatchdogData.
22 @param ResetData For a ResetType of EfiResetCold, EfiResetWarm, or
23 EfiResetShutdown the data buffer starts with a Null-terminated
24 Unicode string, optionally followed by additional binary data.
30 IN EFI_RESET_TYPE ResetType
,
31 IN EFI_STATUS ResetStatus
,
33 IN VOID
*ResetData OPTIONAL
36 LibResetSystem (ResetType
, ResetStatus
, DataSize
, ResetData
);
43 IN EFI_HANDLE ImageHandle
,
44 IN EFI_SYSTEM_TABLE
*SystemTable
50 LibInitializeResetSystem (ImageHandle
, SystemTable
);
52 SystemTable
->RuntimeServices
->ResetSystem
= ResetSystemViaLib
;
55 Status
= gBS
->InstallMultipleProtocolInterfaces (
57 &gEfiResetArchProtocolGuid
,
61 ASSERT_EFI_ERROR (Status
);