comparison dyncallback/dyncall_callback_ppc64.h @ 0:3e629dc19168

initial from svn dyncall-1745
author Daniel Adler
date Thu, 19 Mar 2015 22:24:28 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:3e629dc19168
1 /*
2
3 Package: dyncall
4 Library: dyncallback
5 File: dyncallback/dyncall_callback_ppc64.h
6 Description: Callback - Header for ppc64
7 License:
8
9 Copyright (c) 2014-2015 Masanori Mitsugi <mitsugi@linux.vnet.ibm.com>
10
11 Permission to use, copy, modify, and distribute this software for any
12 purpose with or without fee is hereby granted, provided that the above
13 copyright notice and this permission notice appear in all copies.
14
15 THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
16 WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
17 MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
18 ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
19 WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
20 ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
21 OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
22
23 */
24
25 #ifndef DYNCALL_CALLBACK_PPC64_H
26 #define DYNCALL_CALLBACK_PPC64_H
27
28 #include "dyncall_callback.h"
29
30 #include "dyncall_thunk.h"
31 #include "dyncall_args_ppc64.h"
32
33 /*
34 ELF v2
35 thunk : offset 0, size 48
36 handler : offset 48, size 8
37 stack_cleanup : offset 56, size 8
38 userdata : offset 64, size 8
39
40 ELF v1
41 thunk : offset 0, size 64
42 handler : offset 64, size 8
43 stack_cleanup : offset 72, size 8
44 userdata : offset 80, size 8
45 */
46
47 struct DCCallback
48 {
49 DCThunk thunk;
50 DCCallbackHandler* handler;
51 size_t stack_cleanup;
52 void* userdata;
53 };
54
55 #endif /* DYNCALL_CALLBACK_PPC64_H */
56