summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-13 08:52:29 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2008-11-13 08:52:29 +0000
commit4c24c4eeb48672cdce06cf1d1f90f9e9c14a15a0 (patch)
tree93fa514f9debeeb5976cdc6aee57017625ae5c4e /MdePkg
parent5a92a63603088ac0ed9aa6862c9873763aefeca4 (diff)
downloadedk2-4c24c4eeb48672cdce06cf1d1f90f9e9c14a15a0.zip
edk2-4c24c4eeb48672cdce06cf1d1f90f9e9c14a15a0.tar.gz
edk2-4c24c4eeb48672cdce06cf1d1f90f9e9c14a15a0.tar.bz2
Add BasePalLibNull
It originates from BasePalCallLibNull git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6507 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/Library/BasePalLibNull/BasePalLibNull.inf40
-rw-r--r--MdePkg/Library/BasePalLibNull/PalCall.c48
2 files changed, 88 insertions, 0 deletions
diff --git a/MdePkg/Library/BasePalLibNull/BasePalLibNull.inf b/MdePkg/Library/BasePalLibNull/BasePalLibNull.inf
new file mode 100644
index 0000000..ba8bf8a
--- /dev/null
+++ b/MdePkg/Library/BasePalLibNull/BasePalLibNull.inf
@@ -0,0 +1,40 @@
+#/** @file
+# Null instance of PAL Library with empty functions.
+#
+# Copyright (c) 2007 - 2008, Intel Corporation.
+#
+# 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.
+#
+#
+#**/
+
+[Defines]
+ INF_VERSION = 0x00010005
+ BASE_NAME = BasePalCallLibNull
+ FILE_GUID = 632D5625-B73D-43b8-AF30-8D225D96168E
+ MODULE_TYPE = BASE
+ VERSION_STRING = 1.0
+ LIBRARY_CLASS = PalCallLib
+ EDK_RELEASE_VERSION = 0x00020000
+
+
+#
+# VALID_ARCHITECTURES = IPF
+#
+
+[Sources.common]
+ PalCall.c
+
+
+[Packages]
+ MdePkg/MdePkg.dec
+
+
+[LibraryClasses]
+ DebugLib
+
diff --git a/MdePkg/Library/BasePalLibNull/PalCall.c b/MdePkg/Library/BasePalLibNull/PalCall.c
new file mode 100644
index 0000000..e13711a
--- /dev/null
+++ b/MdePkg/Library/BasePalLibNull/PalCall.c
@@ -0,0 +1,48 @@
+/** @file
+
+ Template and Sample instance of PalCallLib.
+
+ Copyright (c) 2006 - 2008, Intel Corporation
+ 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.
+
+**/
+#include <Base.h>
+#include <Library/PalLib.h>
+#include <Library/DebugLib.h>
+
+/**
+ Makes a PAL procedure call.
+
+ This is a wrapper function to make a PAL procedure call.
+ This is just a template as simple instance. It does not
+ make real PAL call. It directly reports error if called.
+
+ @param Index The PAL procedure Index number.
+ @param Arg2 The 2nd parameter for PAL procedure calls.
+ @param Arg3 The 3rd parameter for PAL procedure calls.
+ @param Arg4 The 4th parameter for PAL procedure calls.
+
+ @return Structure returned from the PAL Call procedure, including the status and return value.
+
+**/
+PAL_CALL_RETURN
+EFIAPI
+PalCall (
+ IN UINT64 Index,
+ IN UINT64 Arg2,
+ IN UINT64 Arg3,
+ IN UINT64 Arg4
+ )
+{
+ PAL_CALL_RETURN Ret;
+
+ Ret.Status = (UINT64) -1;
+ ASSERT (!RETURN_ERROR (RETURN_UNSUPPORTED));
+ return Ret;
+}