summaryrefslogtreecommitdiff
path: root/src/lj_ccall.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_ccall.h')
-rw-r--r--src/lj_ccall.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/lj_ccall.h b/src/lj_ccall.h
index 0641625f..c94b6193 100644
--- a/src/lj_ccall.h
+++ b/src/lj_ccall.h
@@ -80,6 +80,21 @@ typedef double FPRArg;
80 80
81typedef intptr_t GPRArg; 81typedef intptr_t GPRArg;
82 82
83#elif LJ_TARGET_MIPS
84
85#define CCALL_NARG_GPR 4
86#define CCALL_NARG_FPR 2
87#define CCALL_NRET_GPR 2
88#define CCALL_NRET_FPR 2
89#define CCALL_SPS_EXTRA 7
90#define CCALL_SPS_FREE 1
91
92typedef intptr_t GPRArg;
93typedef union FPRArg {
94 double d;
95 struct { LJ_ENDIAN_LOHI(float f; , float g;) };
96} FPRArg;
97
83#else 98#else
84#error "Missing calling convention definitions for this architecture" 99#error "Missing calling convention definitions for this architecture"
85#endif 100#endif