Mercurial > pub > dyncall > dyncall
annotate dyncallback/dyncall_args_sparc64.h @ 251:3f7c69fadfc3
- regression fix for changing writable to executable memory for platforms where
mmap has no MAP_ANON (usually older platforms, e.g. solaris 7)
author | Tassilo Philipp |
---|---|
date | Sun, 14 May 2017 02:26:21 +0200 |
parents | 95cf20c0d1de |
children | f5577f6bf97a |
rev | line source |
---|---|
0 | 1 /* |
2 | |
3 Package: dyncall | |
4 Library: dyncallback | |
5 File: dyncallback/dyncall_args_sparc64.h | |
101 | 6 Description: Callback's Arguments VM - Header for sparc64 - not yet |
0 | 7 License: |
8 | |
191
2f7a7f3472cb
- first draft at sparc64 callbacks (floats not working, yet)
Tassilo Philipp
parents:
101
diff
changeset
|
9 Copyright (c) 2007-2017 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 #ifndef DYNCALLBACK_ARGS_SPARC64_H | |
28 #define DYNCALLBACK_ARGS_SPARC64_H | |
29 | |
30 #include "dyncall_args.h" | |
31 | |
196 | 32 #define DCARGS_SPARC64_NUM_DOUBLE_REGS 16 |
0 | 33 struct DCArgs |
34 { | |
196 | 35 /* Don't change order or types, laid out for asm code to fill in! */ |
36 DClonglong *arg_ptr; | |
37 DCdouble dreg_data[DCARGS_SPARC64_NUM_DOUBLE_REGS]; | |
38 DClonglong i; /* args fetched */ | |
0 | 39 }; |
40 | |
41 #endif /* DYNCALLBACK_ARGS_SPARC64_H */ | |
42 |