0
|
1 /*
|
|
2
|
|
3 Package: dyncall
|
|
4 Library: dyncall
|
|
5 File: dyncall/dyncall_call_mips_eabi.h
|
|
6 Description: mips "eabi" abi call kernel C interface.
|
|
7 License:
|
|
8
|
281
|
9 Copyright (c) 2007-2018 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 #ifndef DYNCALL_CALL_MIPS_EABI_H
|
|
29 #define DYNCALL_CALL_MIPS_EABI_H
|
|
30
|
|
31 #include "dyncall_types.h"
|
|
32
|
|
33 #ifdef __cplusplus
|
|
34 extern "C" {
|
|
35 #endif
|
|
36
|
|
37 /* Call-kernel register data:
|
|
38
|
|
39 Details:
|
|
40 Two register content buffers for the corresponding register types
|
|
41 integer and float are filled from CallVM code and then later at
|
|
42 call-kernel loaded into the registers.
|
|
43 */
|
|
44
|
|
45 struct DCRegData_mips_eabi
|
|
46 {
|
|
47 DCint mIntData[8];
|
|
48 DCfloat mSingleData[8];
|
|
49 };
|
|
50
|
|
51
|
|
52 /* Call kernel. */
|
|
53
|
|
54 void dcCall_mips_eabi(DCpointer target, struct DCRegData_mips_eabi* regdata, DCsize stksize, DCpointer stkdata);
|
|
55
|
|
56 #ifdef __cplusplus
|
|
57 }
|
|
58 #endif
|
|
59
|
|
60
|
|
61 #endif /* DYNCALL_CALL_MIPS_EABI_H */
|
|
62
|