diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-09-25 16:02:00 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-09-25 16:02:00 +0000 |
commit | ad95e527ec5fe87a695555e9461e07881518e10c (patch) | |
tree | 46ae1156d4adcd15c72ef39059fdd4cedd1c0922 /os/kernel/src/chthreads.c | |
parent | cb63381502ad62fdc0fd35cf1602c53999f789c2 (diff) | |
download | ChibiOS-ad95e527ec5fe87a695555e9461e07881518e10c.tar.gz ChibiOS-ad95e527ec5fe87a695555e9461e07881518e10c.tar.bz2 ChibiOS-ad95e527ec5fe87a695555e9461e07881518e10c.zip |
Fix to the fix...
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2201 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/kernel/src/chthreads.c')
-rw-r--r-- | os/kernel/src/chthreads.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/os/kernel/src/chthreads.c b/os/kernel/src/chthreads.c index 237fd44fb..60d2397bd 100644 --- a/os/kernel/src/chthreads.c +++ b/os/kernel/src/chthreads.c @@ -260,7 +260,7 @@ Thread *chThdCreateFromMemoryPool(MemoryPool *mp, tprio_t prio, #if CH_DBG_FILL_THREADS
memfill((uint8_t *)wsp, (uint8_t *)wsp + sizeof(Thread), THREAD_FILL_VALUE);
memfill((uint8_t *)wsp + sizeof(Thread),
- (uint8_t *)wsp + size, STACK_FILL_VALUE);
+ (uint8_t *)wsp + mp->mp_object_size, STACK_FILL_VALUE);
#endif
chSysLock();
|