aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/hipe/hipe_risc_glue.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2014-10-24 17:36:05 +0200
committerSverker Eriksson <[email protected]>2014-10-24 17:36:05 +0200
commit389b65126d2777cf61a7995e082b00ef7a0e7778 (patch)
tree16090b85ef7361f821e34eea1da6c28d00590f09 /erts/emulator/hipe/hipe_risc_glue.h
parent9c6a5be013be2d88935a4c74e8dff92376821a0d (diff)
parenta70f0ce9b34e4db61dacb8db24f9ab5671ed4c8a (diff)
downloadotp-389b65126d2777cf61a7995e082b00ef7a0e7778.tar.gz
otp-389b65126d2777cf61a7995e082b00ef7a0e7778.tar.bz2
otp-389b65126d2777cf61a7995e082b00ef7a0e7778.zip
Merge branch 'maint'
Diffstat (limited to 'erts/emulator/hipe/hipe_risc_glue.h')
-rw-r--r--erts/emulator/hipe/hipe_risc_glue.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/erts/emulator/hipe/hipe_risc_glue.h b/erts/emulator/hipe/hipe_risc_glue.h
index cc2671c016..dbb7086dae 100644
--- a/erts/emulator/hipe/hipe_risc_glue.h
+++ b/erts/emulator/hipe/hipe_risc_glue.h
@@ -214,6 +214,14 @@ hipe_trap_from_native_is_recursive(Process *p)
return 0;
}
+/* Native called BIF. Is it a recursive call?
+ i.e should we return back to native when BIF is done? */
+static __inline__ int
+hipe_bifcall_from_native_is_recursive(Process *p)
+{
+ return (p->hipe.nra != (void(*)(void))&nbif_return);
+}
+
/* Native makes a call which needs to unload the parameters.
This differs from hipe_call_from_native_is_recursive() in