]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BasePalLibNull/PalCall.c
Add BasePalLibNull
[mirror_edk2.git] / MdePkg / Library / BasePalLibNull / PalCall.c
1 /** @file
2
3 Template and Sample instance of PalCallLib.
4
5 Copyright (c) 2006 - 2008, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
10
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13
14 **/
15 #include <Base.h>
16 #include <Library/PalLib.h>
17 #include <Library/DebugLib.h>
18
19 /**
20 Makes a PAL procedure call.
21
22 This is a wrapper function to make a PAL procedure call.
23 This is just a template as simple instance. It does not
24 make real PAL call. It directly reports error if called.
25
26 @param Index The PAL procedure Index number.
27 @param Arg2 The 2nd parameter for PAL procedure calls.
28 @param Arg3 The 3rd parameter for PAL procedure calls.
29 @param Arg4 The 4th parameter for PAL procedure calls.
30
31 @return Structure returned from the PAL Call procedure, including the status and return value.
32
33 **/
34 PAL_CALL_RETURN
35 EFIAPI
36 PalCall (
37 IN UINT64 Index,
38 IN UINT64 Arg2,
39 IN UINT64 Arg3,
40 IN UINT64 Arg4
41 )
42 {
43 PAL_CALL_RETURN Ret;
44
45 Ret.Status = (UINT64) -1;
46 ASSERT (!RETURN_ERROR (RETURN_UNSUPPORTED));
47 return Ret;
48 }