]> git.proxmox.com Git - mirror_edk2.git/blob - MdePkg/Library/BasePalLibNull/PalCall.c
Synchronize function comment in h file
[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<BR>
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
16 #include <Base.h>
17 #include <Library/PalLib.h>
18 #include <Library/DebugLib.h>
19
20 /**
21 Makes a PAL procedure call.
22
23 This is a wrapper function to make a PAL procedure call.
24 This is just a template as simple instance. It does not
25 make real PAL call. It directly reports error if called.
26
27 @param Index The PAL procedure Index number.
28 @param Arg2 The 2nd parameter for PAL procedure calls.
29 @param Arg3 The 3rd parameter for PAL procedure calls.
30 @param Arg4 The 4th parameter for PAL procedure calls.
31
32 @return Structure returned from the PAL Call procedure, including the status and return value.
33
34 **/
35 PAL_CALL_RETURN
36 EFIAPI
37 PalCall (
38 IN UINT64 Index,
39 IN UINT64 Arg2,
40 IN UINT64 Arg3,
41 IN UINT64 Arg4
42 )
43 {
44 PAL_CALL_RETURN Ret;
45
46 Ret.Status = (UINT64) -1;
47 ASSERT (!RETURN_ERROR (RETURN_UNSUPPORTED));
48 return Ret;
49 }