Skip to content

Commit bdb1440

Browse files
committed
Fix TRACE calls with -Wpedantic, add jit continuation
Signed-off-by: Paul Guyot <[email protected]>
1 parent 151182c commit bdb1440

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/libAtomVM/opcodesswitch.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1895,7 +1895,7 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
18951895

18961896
// This is where loop starts after context switching.
18971897
schedule_in:
1898-
TRACE("scheduling in, ctx = %p\n", ctx);
1898+
TRACE("scheduling in, ctx = %p\n", (void *) ctx);
18991899
if (ctx == NULL) return 0;
19001900
x_regs = ctx->x;
19011901
mod = ctx->saved_module;
@@ -1962,9 +1962,9 @@ HOT_FUNC int scheduler_entry_point(GlobalContext *glb)
19621962
jit_state.module = mod;
19631963
jit_state.remaining_reductions = remaining_reductions;
19641964
// __asm__ volatile("int $0x03");
1965-
TRACE("calling native code at %p, ctx = %p\n", native_pc, ctx);
1965+
TRACE("calling native code at %p, ctx = %p\n", (void *) native_pc, (void *) ctx);
19661966
Context *new_ctx = native_pc(ctx, &jit_state, &module_native_interface);
1967-
TRACE("returning from native code at %p, ctx = %p, new_ctx = %p\n", native_pc, ctx, new_ctx);
1967+
TRACE("returning from native code at %p, ctx = %p, new_ctx = %p, jit_state.continuation = %p\n", (void *) native_pc, (void *) ctx, (void *) new_ctx, (void *) jit_state.continuation);
19681968
remaining_reductions = jit_state.remaining_reductions;
19691969
if (UNLIKELY(new_ctx != ctx)) {
19701970
ctx = new_ctx;

0 commit comments

Comments
 (0)