878ddf1f |
1 | /*++\r |
2 | \r |
3 | Copyright (c) 2006, Intel Corporation \r |
4 | All rights reserved. This program and the accompanying materials \r |
5 | are licensed and made available under the terms and conditions of the BSD License \r |
6 | which accompanies this distribution. The full text of the license may be found at \r |
7 | http://opensource.org/licenses/bsd-license.php \r |
8 | \r |
9 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r |
10 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r |
11 | \r |
12 | Module Name:\r |
13 | \r |
14 | RuntimeService.c\r |
15 | \r |
878ddf1f |
16 | --*/\r |
17 | \r |
18 | #include <RuntimeLibInternal.h>\r |
19 | \r |
20 | VOID\r |
e8a3bee0 |
21 | EFIAPI\r |
878ddf1f |
22 | EfiResetSystem (\r |
23 | IN EFI_RESET_TYPE ResetType,\r |
24 | IN EFI_STATUS ResetStatus,\r |
25 | IN UINTN DataSize,\r |
26 | IN CHAR16 *ResetData\r |
27 | )\r |
28 | /*++\r |
29 | \r |
30 | Routine Description:\r |
31 | \r |
32 | Resets the entire platform.\r |
33 | \r |
34 | Arguments:\r |
35 | \r |
36 | ResetType - The type of reset to perform.\r |
37 | ResetStatus - The status code for the reset.\r |
38 | DataSize - The size, in bytes, of ResetData.\r |
39 | ResetData - A data buffer that includes a Null-terminated Unicode string, optionally\r |
40 | followed by additional binary data.\r |
41 | \r |
42 | Returns:\r |
43 | \r |
44 | None\r |
45 | \r |
46 | --*/\r |
47 | {\r |
48 | EFI_GUID Guid = EFI_EXTENDED_SAL_RESET_SERVICES_PROTOCOL_GUID;\r |
49 | \r |
50 | EfiCallEsalService (\r |
51 | &Guid,\r |
52 | ResetSystem,\r |
53 | (UINT64) ResetType,\r |
54 | (UINT64) ResetStatus,\r |
55 | (UINT64) DataSize,\r |
56 | (UINT64) ResetData,\r |
57 | 0,\r |
58 | 0,\r |
59 | 0\r |
60 | );\r |
61 | }\r |
62 | \r |
63 | \r |
64 | //\r |
65 | // The following functions hide the mRT local global from the call to\r |
66 | // runtime service in the EFI system table.\r |
67 | //\r |
68 | EFI_STATUS\r |
e8a3bee0 |
69 | EFIAPI\r |
878ddf1f |
70 | EfiGetTime (\r |
71 | OUT EFI_TIME *Time,\r |
72 | OUT EFI_TIME_CAPABILITIES *Capabilities\r |
73 | )\r |
74 | /*++\r |
75 | \r |
76 | Routine Description:\r |
77 | \r |
78 | Returns the current time and date information, and the time-keeping \r |
79 | capabilities of the hardware platform.\r |
80 | \r |
81 | Arguments:\r |
82 | \r |
83 | Time - A pointer to storage to receive a snapshot of the current time.\r |
84 | Content-type: text/html
git.proxmox.com Git - mirror_edk2.git/blame - EdkModulePkg/Library/EdkUefiRuntimeLib/Ipf/RuntimeService.c
500 - Internal Server Error
Malformed UTF-8 character (fatal) at (eval 6) line 1, <$fd> line 190.