Merge pull request #66 from ppizarro/master
BlackFin fixes - Fatal error when calling a function defined in a shared library from within the function called by FFI
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
ffi.c - Copyright (c) 2012 Alexandre K. I. de Mendonca <alexandre.keunecke@gmail.com>
|
ffi.c - Copyright (c) 2012 Alexandre K. I. de Mendonca <alexandre.keunecke@gmail.com>,
|
||||||
|
Paulo Pizarro <paulo.pizarro@gmail.com>
|
||||||
|
|
||||||
Blackfin Foreign Function Interface
|
Blackfin Foreign Function Interface
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
/* -----------------------------------------------------------------------
|
/* -----------------------------------------------------------------------
|
||||||
sysv.S - Copyright (c) 2012 Alexandre K. I. de Mendonca <alexandre.keunecke@gmail.com>
|
sysv.S - Copyright (c) 2012 Alexandre K. I. de Mendonca <alexandre.keunecke@gmail.com>,
|
||||||
|
Paulo Pizarro <paulo.pizarro@gmail.com>
|
||||||
|
|
||||||
Blackfin Foreign Function Interface
|
Blackfin Foreign Function Interface
|
||||||
|
|
||||||
@@ -47,6 +48,7 @@
|
|||||||
ecif.rvalue = stack (fp+24)
|
ecif.rvalue = stack (fp+24)
|
||||||
fn = stack (fp+28)
|
fn = stack (fp+28)
|
||||||
got (fp+32)
|
got (fp+32)
|
||||||
|
|
||||||
There is room for improvement here (we can use temporary registers
|
There is room for improvement here (we can use temporary registers
|
||||||
instead of saving the values in the memory)
|
instead of saving the values in the memory)
|
||||||
REGS:
|
REGS:
|
||||||
|
|||||||
Reference in New Issue
Block a user