Mercurial > pub > dyncall > dyncall
annotate dyncallback/dyncall_args_mips.h @ 214:0592eb360af2
tests:
- added dynload_plain test
- added some more output to resolv_self
- cleanups
author | Tassilo Philipp |
---|---|
date | Thu, 06 Apr 2017 02:13:57 +0200 |
parents | f63467916f98 |
children | f5577f6bf97a |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 Package: dyncall | |
4 Library: dyncallback | |
5 File: dyncallback/dyncall_args_mips.h | |
6 Description: Callback's Arguments VM - Header for MIPS | |
7 License: | |
8 | |
9 Copyright (c) 2013-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 #ifndef DYNCALLBACK_ARGS_MIPS_H | |
28 #define DYNCALLBACK_ARGS_MIPS_H | |
29 | |
30 #include "dyncall_args.h" | |
31 | |
32 struct DCArgs | |
33 { | |
122
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
34 /* Don't change order or types, laid out for asm code to fill in! */ |
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
35 #if defined(DC__Arch_MIPS) && defined(DC__ABI_MIPS_O32) |
109 | 36 DCint freg_count; |
104
dbca6763f2be
- complete, working mips o32 callback (using hardware fp); fixes error from last commit, which ignored first 2 float args
cslag
parents:
102
diff
changeset
|
37 #else |
109 | 38 # define DCARGS_MIPS_NUM_IREGS 8 |
39 # define DCARGS_MIPS_NUM_FREGS 8 | |
122
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
40 # if defined(DC__Arch_MIPS) |
109 | 41 DCint ireg_data[DCARGS_MIPS_NUM_IREGS]; |
42 DCfloat freg_data[DCARGS_MIPS_NUM_FREGS]; | |
43 struct { DCshort i; DCshort f; } reg_count; | |
122
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
44 # elif defined(DC__Arch_MIPS64) |
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
45 DClonglong ireg_data[DCARGS_MIPS_NUM_IREGS]; |
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
46 DCdouble freg_data[DCARGS_MIPS_NUM_FREGS]; |
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
47 DClonglong reg_count; |
f63467916f98
- first draft of mips64 n64 callbacks, not everything working, though
cslag
parents:
110
diff
changeset
|
48 # endif |
102
b7a9b524f0c3
- mips o32 callbacks, first draft (calls into handler correctly, with correct params, but doesn't return)
cslag
parents:
0
diff
changeset
|
49 #endif |
110 | 50 DCuchar* stackptr; |
0 | 51 }; |
52 | |
53 #endif /* DYNCALLBACK_ARGS_MIPS_H */ | |
54 |