3 Copyright (c) 2004 - 2008, 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 UNIX Emulation
24 #include <Protocol/Reset.h>
26 #include <Library/BaseLib.h>
27 #include <Library/DebugLib.h>
28 #include <Library/UefiLib.h>
29 #include <Library/UefiDriverEntryPoint.h>
30 #include <Library/UnixLib.h>
31 #include <Library/MemoryAllocationLib.h>
32 #include <Library/UefiBootServicesTableLib.h>
37 IN EFI_HANDLE ImageHandle
,
38 IN EFI_SYSTEM_TABLE
*SystemTable
44 IN EFI_RESET_TYPE ResetType
,
45 IN EFI_STATUS ResetStatus
,
47 IN VOID
*ResetData OPTIONAL
53 IN EFI_HANDLE ImageHandle
,
54 IN EFI_SYSTEM_TABLE
*SystemTable
63 ImageHandle of the loaded driver
64 Pointer to the System Table
70 // TODO: SystemTable - add argument and description to function comment
75 SystemTable
->RuntimeServices
->ResetSystem
= UnixResetSystem
;
78 Status
= gBS
->InstallMultipleProtocolInterfaces (
80 &gEfiResetArchProtocolGuid
,
84 ASSERT_EFI_ERROR (Status
);
92 IN EFI_RESET_TYPE ResetType
,
93 IN EFI_STATUS ResetStatus
,
95 IN VOID
*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
125 // Should never go here