diff options
author | Fabio Utzig <utzig@utzig.org> | 2015-07-26 14:13:04 +0000 |
---|---|---|
committer | Fabio Utzig <utzig@utzig.org> | 2015-07-26 14:13:04 +0000 |
commit | 408bbff93e49a6803c9f68016d4745477a312e35 (patch) | |
tree | fa4ed72ea7fd9bddf0c7a2a68ea3b6392eff4311 | |
parent | 0e263707af129726b6f9f1056523e1f16f350078 (diff) | |
download | ChibiOS-408bbff93e49a6803c9f68016d4745477a312e35.tar.gz ChibiOS-408bbff93e49a6803c9f68016d4745477a312e35.tar.bz2 ChibiOS-408bbff93e49a6803c9f68016d4745477a312e35.zip |
[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
-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; \
}
|