summaryrefslogtreecommitdiffstats
path: root/MdePkg/Library/UefiRuntimeServicesTableLib
diff options
context:
space:
mode:
authorqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-06 15:19:20 +0000
committerqwang12 <qwang12@6f19259b-4bc3-4df7-8a09-765794883524>2007-07-06 15:19:20 +0000
commita73480f6f2e211947ac19ef049adcba6f50bb655 (patch)
tree1142c6c03237e760272c32e01e4e55f9b2093935 /MdePkg/Library/UefiRuntimeServicesTableLib
parent04eced5b5281adee80dc108a963371e8424d30fc (diff)
downloadedk2-a73480f6f2e211947ac19ef049adcba6f50bb655.tar.gz
edk2-a73480f6f2e211947ac19ef049adcba6f50bb655.tar.bz2
edk2-a73480f6f2e211947ac19ef049adcba6f50bb655.zip
Enable Intel IPF compilation for MdePkg.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3130 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Library/UefiRuntimeServicesTableLib')
-rw-r--r--MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c2
-rw-r--r--MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLibInternal.h39
2 files changed, 41 insertions, 0 deletions
diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
index 3d493d5af4..3ef317f14c 100644
--- a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
+++ b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLib.c
@@ -27,6 +27,8 @@
#include <Library/UefiRuntimeServicesTableLib.h>
#include <Library/DebugLib.h>
+#include "UefiRuntimeServicesTableLibInternal.h"
+
EFI_RUNTIME_SERVICES *gRT = NULL;
/**
diff --git a/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLibInternal.h b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLibInternal.h
new file mode 100644
index 0000000000..95ff283203
--- /dev/null
+++ b/MdePkg/Library/UefiRuntimeServicesTableLib/UefiRuntimeServicesTableLibInternal.h
@@ -0,0 +1,39 @@
+/** @file
+ Internal Header file for UEFI Runtime Services Table Library.
+
+ Copyright (c) 2006, Intel Corporation<BR>
+ All rights reserved. This program and the accompanying materials
+ are licensed and made available under the terms and conditions of the BSD License
+ which accompanies this distribution. The full text of the license may be found at
+ http://opensource.org/licenses/bsd-license.php
+
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+
+**/
+
+
+#ifndef _UEFI_RUNTIME_SERVICES_TABLE_LIB_INTERNAL_H_
+#define _UEFI_RUNTIME_SERVICES_TABLE_LIB_INTERNAL_H_
+/**
+ The constructor function caches the pointer of Runtime Services Table.
+
+ The constructor function caches the pointer of Runtime Services Table.
+ It will ASSERT() if the pointer of Runtime Services Table is NULL.
+ It will always return EFI_SUCCESS.
+
+ @param ImageHandle The firmware allocated handle for the EFI image.
+ @param SystemTable A pointer to the EFI System Table.
+
+ @retval EFI_SUCCESS The constructor always returns EFI_SUCCESS.
+
+**/
+EFI_STATUS
+EFIAPI
+UefiRuntimeServicesTableLibConstructor (
+ IN EFI_HANDLE ImageHandle,
+ IN EFI_SYSTEM_TABLE *SystemTable
+ )
+;
+#endif
+