]>
Commit | Line | Data |
---|---|---|
3eb9473e | 1 | /*++\r |
2 | \r | |
2c7e5c2f HT |
3 | Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r |
4 | This program and the accompanying materials \r | |
3eb9473e | 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 | \r | |
13 | Module Name:\r | |
14 | \r | |
15 | UefiRuntimeServicesTableLib.c\r | |
16 | \r | |
17 | Abstract: \r | |
18 | \r | |
19 | UEFI Runtime Services Table Library.\r | |
20 | \r | |
21 | --*/\r | |
22 | \r | |
23 | #include "EdkIIGlueUefi.h"\r | |
24 | \r | |
25 | EFI_RUNTIME_SERVICES *gRT = NULL;\r | |
26 | \r | |
27 | /**\r | |
28 | The constructor function caches the pointer of Runtime Services Table.\r | |
29 | \r | |
30 | The constructor function caches the pointer of Runtime Services Table.\r | |
31 | It will ASSERT() if the pointer of Runtime Services Table is NULL.\r | |
32 | It will always return EFI_SUCCESS.\r | |
33 | \r | |
34 | @param ImageHandle The firmware allocated handle for the EFI image.\r | |
35 | @param SystemTable A pointer to the EFI System Table.\r | |
36 | \r | |
37 | @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.\r | |
38 | \r | |
39 | **/\r | |
40 | EFI_STATUS\r | |
41 | EFIAPI\r | |
42 | UefiRuntimeServicesTableLibConstructor (\r | |
43 | IN EFI_HANDLE ImageHandle,\r | |
44 | IN EFI_SYSTEM_TABLE *SystemTable\r | |
45 | )\r | |
46 | {\r | |
47 | //\r | |
48 | // Cache pointer to the EFI Runtime Services Table\r | |
49 | //\r | |
50 | gRT = SystemTable->RuntimeServices;\r | |
51 | ASSERT (gRT != NULL);\r | |
52 | return EFI_SUCCESS;\r | |
53 | }\r |