3 Copyright (c) 2006, Intel Corporation. All rights reserved.<BR>
4 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
41 IN EFI_RESET_TYPE ResetType
,
42 IN EFI_STATUS ResetStatus
,
44 IN VOID
*ResetData OPTIONAL
51 IN EFI_HANDLE ImageHandle
,
52 IN EFI_SYSTEM_TABLE
*SystemTable
61 ImageHandle of the loaded driver
62 Pointer to the System Table
68 // TODO: SystemTable - add argument and description to function comment
73 SystemTable
->RuntimeServices
->ResetSystem
= WinNtResetSystem
;
76 Status
= gBS
->InstallMultipleProtocolInterfaces (
78 &gEfiResetArchProtocolGuid
,
82 ASSERT_EFI_ERROR (Status
);
90 IN EFI_RESET_TYPE ResetType
,
91 IN EFI_STATUS ResetStatus
,
93 IN VOID
*ResetData OPTIONAL
99 TODO: Add function description
103 ResetType - TODO: add argument description
104 ResetStatus - TODO: add argument description
105 DataSize - TODO: add argument description
106 ResetData - TODO: add argument description
110 EFI_SUCCESS - TODO: Add description for return value
115 // BUGBUG Need to kill all console windows later
118 // Discard ResetType, always return 0 as exit code
120 gWinNt
->ExitProcess (0);
123 // Should never go here