URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Go to most recent revision |
Only display areas with differences |
Details |
Blame |
View Log
Rev 297 |
Rev 384 |
typedef struct {
|
typedef struct {
|
unsigned nargs;
|
unsigned nargs;
|
} ffi_cif;
|
} ffi_cif;
|
typedef struct {
|
typedef struct {
|
char tramp[24];
|
char tramp[24];
|
ffi_cif *cif;
|
ffi_cif *cif;
|
} ffi_closure;
|
} ffi_closure;
|
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
|
extern void *memcpy (void *, const void *, __SIZE_TYPE__);
|
extern void ffi_closure_LINUX64 (void);
|
extern void ffi_closure_LINUX64 (void);
|
|
|
int
|
int
|
ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
|
ffi_prep_closure_loc (ffi_closure *closure, ffi_cif *cif)
|
{
|
{
|
void **tramp = (void **) &closure->tramp[0];
|
void **tramp = (void **) &closure->tramp[0];
|
|
|
memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
|
memcpy (tramp, (char *) ffi_closure_LINUX64, 16);
|
closure->cif = cif;
|
closure->cif = cif;
|
|
|
return 0;
|
return 0;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.