Mercurial > pub > dyncall > dyncall
comparison dyncallback/dyncall_args_mips.h @ 102:b7a9b524f0c3
- mips o32 callbacks, first draft (calls into handler correctly, with correct params, but doesn't return)
author | cslag |
---|---|
date | Tue, 07 Jun 2016 09:05:34 +0200 |
parents | 3e629dc19168 |
children | dbca6763f2be |
comparison
equal
deleted
inserted
replaced
101:1ce60358fbad | 102:b7a9b524f0c3 |
---|---|
27 #ifndef DYNCALLBACK_ARGS_MIPS_H | 27 #ifndef DYNCALLBACK_ARGS_MIPS_H |
28 #define DYNCALLBACK_ARGS_MIPS_H | 28 #define DYNCALLBACK_ARGS_MIPS_H |
29 | 29 |
30 #include "dyncall_args.h" | 30 #include "dyncall_args.h" |
31 | 31 |
32 #if !defined(DC__ABI_MIPS_O32) | |
33 # define DCARGS_MIPS_PARAM_REGS 4 | |
34 #else | |
35 # define DCARGS_MIPS_PARAM_REGS 8 | |
36 #endif | |
37 | |
32 struct DCArgs | 38 struct DCArgs |
33 { | 39 { |
34 int ireg_data[8]; | 40 /* Don't change order! */ |
35 float freg_data[8]; | 41 #if !defined(DC__ABI_MIPS_O32) |
36 int ireg_count; | 42 struct { int i; float f; } reg_data[DCARGS_MIPS_PARAM_REGS]; |
37 int freg_count; | 43 struct { int i; int f; } reg_count; |
38 unsigned char* stackptr; | 44 #endif |
45 unsigned char* stackptr; | |
39 }; | 46 }; |
40 | 47 |
41 #endif /* DYNCALLBACK_ARGS_MIPS_H */ | 48 #endif /* DYNCALLBACK_ARGS_MIPS_H */ |
42 | 49 |