xref: /netbsd-src/sys/external/bsd/gnu-efi/dist/lib/x86_64/callwrap.c (revision b7b7574d3bf8eeb51a1fa3977b59142ec6434a55)
1 /*	$NetBSD: callwrap.c,v 1.1.1.1 2014/04/01 16:16:07 jakllsch Exp $	*/
2 
3 /*
4  * Convert SysV calling convention to EFI x86_64 calling convention
5  *
6  *  Copyright (C) 2007-2010 Intel Corp
7  *	Bibo Mao <bibo.mao@intel.com>
8  *	Chandramouli Narayanan<mouli@linux.intel.com>
9  *	Huang Ying <ying.huang@intel.com>
10  *
11  *  All rights reserved.
12  *
13  *  Redistribution and use in source and binary forms, with or without
14  *  modification, are permitted provided that the following conditions
15  *  are met:
16  *
17  * - Redistributions of source code must retain the above copyright
18  *   notice, this list of conditions and the following disclaimer.
19  * - Redistributions in binary form must reproduce the above
20  *   copyright notice, this list of conditions and the following
21  *   disclaimer in the documentation and/or other materials
22  *   provided with the distribution.
23  * - Neither the name of Hewlett-Packard Co. nor the names of its
24  *   contributors may be used to endorse or promote products derived
25  *   from this software without specific prior written permission.
26  *
27  *  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
28  *  CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
29  *  INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
30  *  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
31  *  DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
32  *  BE LIABLE FOR ANYDIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
33  *  OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
34  *  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
35  *  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
36  *  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
37  *  TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF
38  *  THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39  *  SUCH DAMAGE.
40  */
41 
42 /* uefi_call_wrapper() is a macro in efibind.h */
43