summaryrefslogtreecommitdiff
path: root/src/microblaze/ffi.c
diff options
context:
space:
mode:
authorGregory Pakosz <gregory.pakosz@gmail.com>2017-04-27 13:20:36 +0200
committerGregory Pakosz <gregory.pakosz@gmail.com>2017-04-27 13:22:28 +0200
commitbd72848c7af9302df50a7a11652c77166d17caa8 (patch)
tree0e2610470931c95473e4b3a0c404ab7ebb1d44b6 /src/microblaze/ffi.c
parentb841ae70a05a5e11de1fca1b4551189db0895cf2 (diff)
downloadlibffi-bd72848c7af9302df50a7a11652c77166d17caa8.tar.gz
Prefix ALIGN macros with FFI_
Diffstat (limited to 'src/microblaze/ffi.c')
-rw-r--r--src/microblaze/ffi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/microblaze/ffi.c b/src/microblaze/ffi.c
index 5733e6e..df6e33c 100644
--- a/src/microblaze/ffi.c
+++ b/src/microblaze/ffi.c
@@ -35,7 +35,7 @@ extern void ffi_closure_SYSV(void);
#define WORD_SIZE sizeof(unsigned int)
#define ARGS_REGISTER_SIZE (WORD_SIZE * 6)
-#define WORD_ALIGN(x) ALIGN(x, WORD_SIZE)
+#define WORD_FFI_ALIGN(x) FFI_ALIGN(x, WORD_SIZE)
/* ffi_prep_args is called by the assembly routine once stack space
has been allocated for the function's arguments */
@@ -74,7 +74,7 @@ void ffi_prep_args(void* stack, extended_cif* ecif)
int type = (*p_arg)->type;
void* value = p_argv[i];
char* addr = stack_args_p;
- int aligned_size = WORD_ALIGN(size);
+ int aligned_size = WORD_FFI_ALIGN(size);
/* force word alignment on the stack */
stack_args_p += aligned_size;
@@ -259,7 +259,7 @@ void ffi_closure_call_SYSV(void* register_args, void* stack_args,
avalue[i] = ptr;
break;
}
- ptr += WORD_ALIGN(arg_types[i]->size);
+ ptr += WORD_FFI_ALIGN(arg_types[i]->size);
}
/* set the return type info passed back to the wrapper */