m68k fixes

This commit is contained in:
Anthony Green
2012-01-23 12:41:06 -05:00
parent c365ee7577
commit 164e6fe04b
11 changed files with 696 additions and 8 deletions

View File

@@ -261,7 +261,8 @@ ffi_prep_closure_loc (ffi_closure* closure,
void *user_data,
void *codeloc)
{
FFI_ASSERT (cif->abi == FFI_SYSV);
if (cif->abi != FFI_SYSV)
return FFI_BAD_ABI;
*(unsigned short *)closure->tramp = 0x207c;
*(void **)(closure->tramp + 2) = codeloc;