]> git.proxmox.com Git - mirror_edk2.git/blame - MdePkg/Include/Library/SalLib.h
MdePkg/BaseLib: add PatchInstructionX86()
[mirror_edk2.git] / MdePkg / Include / Library / SalLib.h
CommitLineData
9c8403b3 1/** @file\r
50a64e5b 2 Provides library services to make SAL Calls.\r
9c8403b3 3\r
9df063a0
HT
4Copyright (c) 2007 - 2008, Intel Corporation. All rights reserved.<BR>\r
5This program and the accompanying materials\r
50a64e5b 6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9c8403b3 9\r
50a64e5b 10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
9c8403b3 12\r
9c8403b3 13**/\r
14\r
15#ifndef __SAL_LIB__\r
16#define __SAL_LIB__\r
17\r
18#include <IndustryStandard/Sal.h>\r
19\r
20/**\r
21 Makes a SAL procedure call.\r
22 \r
23 This is a wrapper function to make a SAL procedure call. \r
24 No parameter checking is performed on the 8 input parameters,\r
25 but there are some common rules that the caller should follow\r
26 when making a SAL call. Any address passed to SAL as buffers\r
27 for return parameters must be 8-byte aligned. Unaligned\r
28 addresses may cause undefined results. For those parameters\r
29 defined as reserved or some fields defined as reserved must be\r
30 zero filled or the invalid argument return value may be returned\r
31 or undefined result may occur during the execution of the procedure.\r
1a2f870c 32 This function is only available on Intel Itanium-based platforms.\r
9c8403b3 33\r
34 @param Index The SAL procedure Index number\r
35 @param Arg2 The 2nd parameter for SAL procedure calls\r
36 @param Arg3 The 3rd parameter for SAL procedure calls\r
37 @param Arg4 The 4th parameter for SAL procedure calls\r
38 @param Arg5 The 5th parameter for SAL procedure calls\r
39 @param Arg6 The 6th parameter for SAL procedure calls\r
40 @param Arg7 The 7th parameter for SAL procedure calls\r
41 @param Arg8 The 8th parameter for SAL procedure calls\r
42\r
43 @return SAL returned registers.\r
44\r
45**/\r
46SAL_RETURN_REGS\r
47EFIAPI\r
48SalCall (\r
49 IN UINT64 Index,\r
50 IN UINT64 Arg2,\r
51 IN UINT64 Arg3,\r
52 IN UINT64 Arg4,\r
53 IN UINT64 Arg5,\r
54 IN UINT64 Arg6,\r
55 IN UINT64 Arg7,\r
56 IN UINT64 Arg8\r
57 );\r
58\r
59#endif\r