3 Copyright (c) 2009, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
19 // The handle onto which the Reset Architectural Protocol is installed
21 EFI_HANDLE mResetHandle
= NULL
;
27 IN EFI_HANDLE ImageHandle
,
28 IN EFI_SYSTEM_TABLE
*SystemTable
34 Initialize the state information for the Reset Architectural Protocol
38 ImageHandle of the loaded driver
39 Pointer to the System Table
45 EFI_SUCCESS - thread can be successfully created
46 EFI_OUT_OF_RESOURCES - cannot allocate protocol data structure
47 EFI_DEVICE_ERROR - cannot create the timer service
50 // TODO: SystemTable - add argument and description to function comment
55 // Make sure the Reset Architectural Protocol is not already installed in the system
57 ASSERT_PROTOCOL_ALREADY_INSTALLED (NULL
, &gEfiResetArchProtocolGuid
);
60 // Hook the runtime service table
62 SystemTable
->RuntimeServices
->ResetSystem
= KbcResetSystem
;
65 // Now install the Reset RT AP on a new handle
67 Status
= gBS
->InstallMultipleProtocolInterfaces (
69 &gEfiResetArchProtocolGuid
,
73 ASSERT_EFI_ERROR (Status
);