0
|
1 /*
|
|
2
|
|
3 Package: dyncall
|
|
4 Library: dyncall
|
|
5 File: dyncall/dyncall_call_ppc64.h
|
|
6 Description:
|
|
7 License:
|
|
8
|
|
9 Copyright (c) 2014-2015 Masanori Mitsugi <mitsugi@linux.vnet.ibm.com>
|
|
10
|
|
11 Permission to use, copy, modify, and distribute this software for any
|
|
12 purpose with or without fee is hereby granted, provided that the above
|
|
13 copyright notice and this permission notice appear in all copies.
|
|
14
|
|
15 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
16 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
17 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
18 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
20 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
21 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
22
|
|
23 */
|
|
24
|
|
25
|
|
26 #ifndef DYNCALL_PPC64_H
|
|
27 #define DYNCALL_PPC64_H
|
|
28
|
|
29 #include "dyncall_types.h"
|
|
30
|
|
31 #ifdef __cplusplus
|
|
32 extern "C" {
|
|
33 #endif
|
|
34
|
|
35 struct DCRegData_ppc64_
|
|
36 {
|
|
37 DClonglong mIntData[8];
|
|
38 DCdouble mFloatData[13];
|
|
39 };
|
|
40
|
|
41 /*
|
|
42 ** PowerPC 64-bit calling convention call
|
|
43 **
|
|
44 ** - hybrid return-type call (bool ... pointer)
|
|
45 **
|
|
46 */
|
|
47
|
|
48 void dcCall_ppc64(DCpointer target, struct DCRegData_ppc64_* ppc64data, DCsize stksize, DCpointer stkdata);
|
|
49
|
|
50 #ifdef __cplusplus
|
|
51 }
|
|
52 #endif
|
|
53
|
|
54 #endif /* DYNCALL_PPC64_H */
|
|
55
|