3 Copyright (c) 2006, 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.
18 Reset Architectural Protocol as defined in Tiano under NT Emulation
24 #include <Protocol/Reset.h>
25 #include <Library/DebugLib.h>
26 #include <Library/UefiDriverEntryPoint.h>
27 #include <Library/WinNtLib.h>
28 #include <Library/UefiBootServicesTableLib.h>
34 IN EFI_HANDLE ImageHandle
,
35 IN EFI_SYSTEM_TABLE
*SystemTable
42 IN EFI_RESET_TYPE ResetType
,
43 IN EFI_STATUS ResetStatus
,
45 IN CHAR16
*ResetData OPTIONAL
52 IN EFI_HANDLE ImageHandle
,
53 IN EFI_SYSTEM_TABLE
*SystemTable
62 ImageHandle of the loaded driver
63 Pointer to the System Table
69 // TODO: SystemTable - add argument and description to function comment
74 SystemTable
->RuntimeServices
->ResetSystem
= WinNtResetSystem
;
77 Status
= gBS
->InstallMultipleProtocolInterfaces (
79 &gEfiResetArchProtocolGuid
,
83 ASSERT_EFI_ERROR (Status
);
92 IN EFI_RESET_TYPE ResetType
,
93 IN EFI_STATUS ResetStatus
,
95 IN CHAR16
*ResetData OPTIONAL
101 TODO: Add function description
105 ResetType - TODO: add argument description
106 ResetStatus - TODO: add argument description
107 DataSize - TODO: add argument description
108 ResetData - TODO: add argument description
112 EFI_SUCCESS - TODO: Add description for return value
117 // BUGBUG Need to kill all console windows later
120 // Discard ResetType, always return 0 as exit code
122 gWinNt
->ExitProcess (0);
125 // Should never go here