Mercurial > pub > dyncall > dyncall
annotate dyncall/dyncall_call_ppc64.h @ 356:2f64957d6a46
- fix to dynload to build with musl libc (latter has dlinfo but not RTLD_SELF, so fallback to dl_iterate_phdr if on ELF targets)
author | Tassilo Philipp |
---|---|
date | Tue, 25 Feb 2020 16:07:45 +0100 |
parents | c607d67cd6b8 |
children |
rev | line source |
---|---|
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 | |
345
c607d67cd6b8
- doc: added syscall info to appendix, fixed broken literature link
Tassilo Philipp
parents:
0
diff
changeset
|
50 /* syscall */ |
c607d67cd6b8
- doc: added syscall info to appendix, fixed broken literature link
Tassilo Philipp
parents:
0
diff
changeset
|
51 void dcCall_ppc64_syscall(DCpointer target, struct DCRegData_ppc64_* ppc64data, DCsize stksize, DCpointer stkdata); |
c607d67cd6b8
- doc: added syscall info to appendix, fixed broken literature link
Tassilo Philipp
parents:
0
diff
changeset
|
52 |
0 | 53 #ifdef __cplusplus |
54 } | |
55 #endif | |
56 | |
57 #endif /* DYNCALL_PPC64_H */ | |
58 |