mirror of
https://github.com/partic2/libffi
synced 2026-11-11 10:37:19 +00:00
Merge pull request #270 from frida/fix/aarch64-warnings
Fix aarch64 warnings
This commit is contained in:
+9
-7
@@ -55,6 +55,14 @@ struct call_context
|
|||||||
UINT64 x[N_X_ARG_REG];
|
UINT64 x[N_X_ARG_REG];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if FFI_EXEC_TRAMPOLINE_TABLE
|
||||||
|
|
||||||
|
#ifdef __MACH__
|
||||||
|
#include <mach/vm_param.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#if defined (__clang__) && defined (__APPLE__)
|
#if defined (__clang__) && defined (__APPLE__)
|
||||||
extern void sys_icache_invalidate (void *start, size_t len);
|
extern void sys_icache_invalidate (void *start, size_t len);
|
||||||
#endif
|
#endif
|
||||||
@@ -71,12 +79,6 @@ ffi_clear_cache (void *start, void *end)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#if FFI_EXEC_TRAMPOLINE_TABLE
|
|
||||||
|
|
||||||
#ifdef __MACH__
|
|
||||||
#include <mach/vm_param.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* A subroutine of is_vfp_type. Given a structure type, return the type code
|
/* A subroutine of is_vfp_type. Given a structure type, return the type code
|
||||||
@@ -316,7 +318,7 @@ extend_integer_type (void *source, int type)
|
|||||||
static void
|
static void
|
||||||
extend_hfa_type (void *dest, void *src, int h)
|
extend_hfa_type (void *dest, void *src, int h)
|
||||||
{
|
{
|
||||||
int f = h - AARCH64_RET_S4;
|
ssize_t f = h - AARCH64_RET_S4;
|
||||||
void *x0;
|
void *x0;
|
||||||
|
|
||||||
asm volatile (
|
asm volatile (
|
||||||
|
|||||||
Reference in New Issue
Block a user