0
|
1 /*
|
|
2
|
|
3 Package: dyncall
|
|
4 Library: dyncall
|
|
5 File: dyncall/dyncall_call_x64.h
|
|
6 Description:
|
|
7 License:
|
|
8
|
339
|
9 Copyright (c) 2007-2020 Daniel Adler <dadler@uni-goettingen.de>,
|
0
|
10 Tassilo Philipp <tphilipp@potion-studios.com>
|
|
11
|
|
12 Permission to use, copy, modify, and distribute this software for any
|
|
13 purpose with or without fee is hereby granted, provided that the above
|
|
14 copyright notice and this permission notice appear in all copies.
|
|
15
|
|
16 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
17 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
18 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
19 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
20 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
21 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
22 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
23
|
|
24 */
|
|
25
|
|
26
|
|
27
|
|
28 /*
|
|
29
|
|
30 dyncall x64
|
|
31
|
|
32 REVISION
|
|
33 2007/12/11 initial
|
|
34
|
|
35 */
|
|
36
|
|
37
|
|
38 #ifndef DYNCALL_CALL_X64_H
|
|
39 #define DYNCALL_CALL_X64_H
|
|
40
|
|
41
|
|
42 #include "dyncall.h"
|
|
43
|
|
44 #ifdef __cplusplus
|
|
45 extern "C" {
|
|
46 #endif
|
|
47
|
|
48 /*
|
|
49 ** x64 SystemV calling convention
|
|
50 **
|
|
51 ** - hybrid return-type call (bool ... pointer)
|
|
52 **
|
|
53 */
|
|
54
|
|
55 void dcCall_x64_sysv(DCsize stacksize, DCpointer stackdata, DCpointer regdata_i, DCpointer regdata_f, DCpointer target);
|
|
56 void dcCall_x64_win64(DCsize stacksize, DCpointer stackdata, DCpointer regdata, DCpointer target);
|
341
|
57 void dcCall_x64_syscall_sysv(DCpointer argdata, DCpointer target);
|
0
|
58
|
|
59 #ifdef __cplusplus
|
|
60 }
|
|
61 #endif
|
|
62
|
|
63
|
|
64 #endif /* DYNCALL_CALL_X64_H */
|
|
65
|