Skip to content
Snippets Groups Projects
Commit 949fc37b authored by ram's avatar ram
Browse files

Patch from TSM for calling dynamically linked foreign routines.

parent 39a180f3
No related branches found
No related tags found
No related merge requests found
...@@ -189,9 +189,11 @@ call_into_c ...@@ -189,9 +189,11 @@ call_into_c
/* Turn off pseudo-atomic and check for traps. */ /* Turn off pseudo-atomic and check for traps. */
addit,od -4,reg_ALLOC,reg_ALLOC addit,od -4,reg_ALLOC,reg_ALLOC
/* Now we can call the C function. */ /* in order to be able to call incrementally linked (ld -A) functions,
ble 0(4,reg_CFUNC) we have to do some mild trickery here */
copy r31, r2 copy reg_CFUNC,%r22
bl $$dyncall,r31
copy r31, r2
/* Clear the callee saves descriptor regs. */ /* Clear the callee saves descriptor regs. */
copy r0, reg_A5 copy r0, reg_A5
......
...@@ -189,9 +189,11 @@ call_into_c ...@@ -189,9 +189,11 @@ call_into_c
/* Turn off pseudo-atomic and check for traps. */ /* Turn off pseudo-atomic and check for traps. */
addit,od -4,reg_ALLOC,reg_ALLOC addit,od -4,reg_ALLOC,reg_ALLOC
/* Now we can call the C function. */ /* in order to be able to call incrementally linked (ld -A) functions,
ble 0(4,reg_CFUNC) we have to do some mild trickery here */
copy r31, r2 copy reg_CFUNC,%r22
bl $$dyncall,r31
copy r31, r2
/* Clear the callee saves descriptor regs. */ /* Clear the callee saves descriptor regs. */
copy r0, reg_A5 copy r0, reg_A5
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment