diff options
-rw-r--r-- | os/rt/ports/AVR/chcore.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/rt/ports/AVR/chcore.h b/os/rt/ports/AVR/chcore.h index 4cbd5b4aa..102a46ee4 100644 --- a/os/rt/ports/AVR/chcore.h +++ b/os/rt/ports/AVR/chcore.h @@ -164,7 +164,7 @@ struct context { tp->p_ctx.sp->r3 = (int)pf >> 8; \
tp->p_ctx.sp->r4 = (int)arg; \
tp->p_ctx.sp->r5 = (int)arg >> 8; \
- tp->p_ctx.sp->pcx = (int)_port_thread_start >> 16; \
+ tp->p_ctx.sp->pcx = (int)0; \
tp->p_ctx.sp->pcl = (int)_port_thread_start >> 8; \
tp->p_ctx.sp->pch = (int)_port_thread_start; \
}
|