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
45 IN EFI_RESET_TYPE ResetType
,
46 IN EFI_STATUS ResetStatus
,
48 IN CHAR16
*ResetData OPTIONAL
54 IN EFI_HANDLE ImageHandle
,
55 IN EFI_SYSTEM_TABLE
*SystemTable
64 ImageHandle of the loaded driver
65 Pointer to the System Table
71 // TODO: SystemTable - add argument and description to function comment
76 SystemTable
->RuntimeServices
->ResetSystem
= UnixResetSystem
;
79 Status
= gBS
->InstallMultipleProtocolInterfaces (
81 &gEfiResetArchProtocolGuid
,
85 ASSERT_EFI_ERROR (Status
);
94 IN EFI_RESET_TYPE ResetType
,
95 IN EFI_STATUS ResetStatus
,
97 IN CHAR16
*ResetData OPTIONAL
103 TODO: Add function description
107 ResetType - TODO: add argument description
108 ResetStatus - TODO: add argument description
109 DataSize - TODO: add argument description
110 ResetData - TODO: add argument description
114 EFI_SUCCESS - TODO: Add description for return value
119 // BUGBUG Need to kill all console windows later
122 // Discard ResetType, always return 0 as exit code
127 // Should never go here