0
|
1 /*
|
|
2
|
|
3 Package: dyncall
|
|
4 Library: dyncall
|
|
5 File: dyncall/dyncall_call_x86.h
|
|
6 Description: heap memory management interface (header only)
|
|
7 License:
|
|
8
|
|
9 Copyright (c) 2007-2015 Daniel Adler <dadler@uni-goettingen.de>,
|
|
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 32bit Intel x86 family interface
|
|
31
|
|
32 REVISION
|
|
33 2007/12/10 initial
|
|
34
|
|
35 */
|
|
36
|
|
37
|
|
38 #ifndef DYNCALL_CALL_X86_H
|
|
39 #define DYNCALL_CALL_X86_H
|
|
40
|
|
41
|
|
42 #include "dyncall_types.h"
|
|
43
|
|
44 #ifdef __cplusplus
|
|
45 extern "C" {
|
|
46 #endif
|
|
47
|
|
48 /*
|
|
49 ** x86 calling convention calls
|
|
50 **
|
|
51 ** - hybrid return-type call (bool ... pointer)
|
|
52 **
|
|
53 */
|
|
54
|
|
55 #if defined(DC__OS_Plan9) /* No support for other cconvs on Plan9 and vice-versa. */
|
|
56 void dcCall_x86_plan9 (DCpointer target, DCpointer stackdata, DCsize size);
|
|
57 #else
|
|
58 void dcCall_x86_cdecl (DCpointer target, DCpointer stackdata, DCsize size);
|
|
59 void dcCall_x86_win32_std (DCpointer target, DCpointer stackdata, DCsize size);
|
|
60 void dcCall_x86_win32_fast (DCpointer target, DCpointer stackdata, DCsize size);
|
|
61 void dcCall_x86_win32_msthis (DCpointer target, DCpointer stackdata, DCsize size);
|
|
62 void dcCall_x86_sys_int80h_linux (DCpointer target, DCpointer stackdata, DCsize size);
|
|
63 void dcCall_x86_sys_int80h_bsd (DCpointer target, DCpointer stackdata, DCsize size);
|
|
64 #endif
|
|
65
|
|
66 #ifdef __cplusplus
|
|
67 }
|
|
68 #endif
|
|
69
|
|
70
|
|
71 #endif /* DYNCALL_CALL_X86_H */
|