aboutsummaryrefslogtreecommitdiffstats
path: root/os/rt/ports/ARMCMx/chcore_v6m.h
diff options
context:
space:
mode:
Diffstat (limited to 'os/rt/ports/ARMCMx/chcore_v6m.h')
-rw-r--r--os/rt/ports/ARMCMx/chcore_v6m.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/os/rt/ports/ARMCMx/chcore_v6m.h b/os/rt/ports/ARMCMx/chcore_v6m.h
index f1af44fdc..f72216f95 100644
--- a/os/rt/ports/ARMCMx/chcore_v6m.h
+++ b/os/rt/ports/ARMCMx/chcore_v6m.h
@@ -206,9 +206,9 @@ struct context {
tp->p_ctx.r13 = (struct port_intctx *)((uint8_t *)workspace + \
wsize - \
sizeof(struct port_intctx)); \
- tp->p_ctx.r13->r4 = (void *)(pf); \
- tp->p_ctx.r13->r5 = (void *)(arg); \
- tp->p_ctx.r13->lr = (void *)(_port_thread_start); \
+ tp->p_ctx.r13->r4 = (regarm_t)(pf); \
+ tp->p_ctx.r13->r5 = (regarm_t)(arg); \
+ tp->p_ctx.r13->lr = (regarm_t)(_port_thread_start); \
}
/**