]> git.proxmox.com Git - mirror_edk2.git/blame - EdkCompatibilityPkg/Foundation/Library/EdkIIGlueLib/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
Update the copyright notice format
[mirror_edk2.git] / EdkCompatibilityPkg / Foundation / Library / EdkIIGlueLib / Library / UefiRuntimeServicesTableLib / UefiRuntimeServicesTableLib.c
CommitLineData
3eb9473e 1/*++\r
2\r
2c7e5c2f
HT
3Copyright (c) 2004 - 2006, Intel Corporation. All rights reserved.<BR>\r
4This program and the accompanying materials \r
3eb9473e 5are licensed and made available under the terms and conditions of the BSD License \r
6which accompanies this distribution. The full text of the license may be found at \r
7http://opensource.org/licenses/bsd-license.php \r
8 \r
9THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, \r
10WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. \r
11\r
12\r
13Module Name:\r
14\r
15 UefiRuntimeServicesTableLib.c\r
16 \r
17Abstract: \r
18\r
19 UEFI Runtime Services Table Library.\r
20\r
21--*/\r
22\r
23#include "EdkIIGlueUefi.h"\r
24\r
25EFI_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
40EFI_STATUS\r
41EFIAPI\r
42UefiRuntimeServicesTableLibConstructor (\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