From cbf137ed955b30d8695d881aa8d16f1a723b89b5 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 3 Oct 2009 19:24:16 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1203 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h') diff --git a/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h b/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h index 21ad75bde..e6a58ce12 100644 --- a/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h +++ b/demos/ARM7-AT91SAM7X-LWIP-GCC/chconf.h @@ -339,7 +339,8 @@ #define THREAD_EXT_FIELDS \ struct { \ /* Add thread custom fields here.*/ \ - void *p_timeouts; \ + /* Space for the LWIP sys_timeouts structure.*/ \ + void *p_lwipspace[1]; \ }; #endif @@ -350,7 +351,7 @@ struct { \ #if !defined(THREAD_EXT_INIT) || defined(__DOXYGEN__) #define THREAD_EXT_INIT(tp) { \ /* Add thread initialization code here.*/ \ - currp->p_timeouts = NULL; \ + (tp)->p_lwipspace[0] = NULL; \ } #endif -- cgit v1.2.3