aboutsummaryrefslogtreecommitdiff
path: root/src/copyjit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/copyjit.c')
-rw-r--r--src/copyjit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/copyjit.c b/src/copyjit.c
index f09cb99..393c8e1 100644
--- a/src/copyjit.c
+++ b/src/copyjit.c
@@ -476,9 +476,10 @@ void compile_finish(ctx_t *ctx)
__builtin___clear_cache(ctx->buf, ctx->buf + ctx->size);
}
-void run(ctx_t *ctx)
+unsigned long run(ctx_t *ctx)
{
void *sp = malloc(4096);
- JUMP(ctx->buf, sp, 0, 0, 0, 0);
+ unsigned long a = CALL(ctx->buf, sp, 0, 0, 0, 0);
free(sp);
+ return a;
}