comparison dyncall/dyncall_call_arm32_arm_armhf.h @ 27:523c45dfa8fb

- refactored arm calling conventions' callvm code, so that the code that keeps the caller from overwriting the return value on some platforms also works on OpenBSD (before we casted the function pointer to have long long as return type, to hint the caller that there is one, but that triggers an intentional SIGABRT on OpenBSD for security reasons; now the decl reflects this, directly)
author cslag
date Tue, 15 Sep 2015 12:48:52 +0200
parents 3e629dc19168
children f5577f6bf97a
comparison
equal deleted inserted replaced
26:32e397e1674c 27:523c45dfa8fb
33 33
34 #ifdef __cplusplus 34 #ifdef __cplusplus
35 extern "C" { 35 extern "C" {
36 #endif 36 #endif
37 37
38 void dcCall_arm32_armhf(DCpointer target, DCpointer stackdata, DCsize size, DCfloat* p_s16); 38 /*
39 ** arm32 armhf mode calling convention calls
40 **
41 ** - hybrid return-type call (bool ... pointer)
42 **
43 ** Note the return type of this declaration is intentially of double-word size.
44 ** On some platforms the compiler generates cleanup code in the caller (dyncall_callvm_arm32_arm_armhf.c's
45 ** call()) that reuses,thus overwrites r0 and r1.
46 ** With this "hint", we preserve those registers by letting the compiler assume both
47 ** registers are used for the return type.
48 */
49
50 DClonglong dcCall_arm32_armhf(DCpointer target, DCpointer stackdata, DCsize size, DCfloat* p_s16);
39 51
40 #ifdef __cplusplus 52 #ifdef __cplusplus
41 } 53 }
42 #endif 54 #endif
43 55