From 408bbff93e49a6803c9f68016d4745477a312e35 Mon Sep 17 00:00:00 2001 From: Fabio Utzig Date: Sun, 26 Jul 2015 14:13:04 +0000 Subject: [AVR] 3-byte PC parts save 0 to pcx git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@8107 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/rt/ports/AVR/chcore.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'os/rt') 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; \ } -- cgit v1.2.3