* src/vm/jit/mips/linux/md-os.c: Simplified signal handlers.
[cacao.git] / src / vm / jit / mips / md-trap.h
index 9ea8bd5c6350190601980e3f65ead85962566e5a..aeec67e64f11445be20f5320baab1373fc3988a9 100644 (file)
@@ -64,6 +64,18 @@ enum {
        TRAP_PATCHER                        = 99 // A large number.
 };
 
+
+/**
+ * Macro to fixup a compiler stub. The XPC is the RA minus 8,
+ * because the RA points to two instructions after the call.
+ */
+#define MD_TRAP_COMPILER_FIXUP(xpc, ra, sp, pv) \
+       do { \
+               (xpc) = (void*) (((uintptr_t) (ra)) - 8); \
+       } while(0)
+
+
+
 #endif /* _MD_TRAP_H */