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