From dfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Sat, 29 Sep 2012 08:39:25 +0000 Subject: [PATCH] Fixed bug 3571053. git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4727 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- os/various/lwip_bindings/arch/sys_arch.c | 7 +++++-- readme.txt | 2 ++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/os/various/lwip_bindings/arch/sys_arch.c b/os/various/lwip_bindings/arch/sys_arch.c index 6880ccf18..0154e5fcc 100644 --- a/os/various/lwip_bindings/arch/sys_arch.c +++ b/os/various/lwip_bindings/arch/sys_arch.c @@ -194,9 +194,12 @@ void sys_mbox_set_invalid(sys_mbox_t *mbox) { sys_thread_t sys_thread_new(const char *name, lwip_thread_fn thread, void *arg, int stacksize, int prio) { + size_t wsz; + void *wsp; + (void)name; - size_t wsz = THD_WA_SIZE(stacksize); - void *wsp = chCoreAlloc(wsz); + wsz = THD_WA_SIZE(stacksize); + wsp = chCoreAlloc(wsz); if (wsp == NULL) return NULL; return (sys_thread_t)chThdCreateStatic(wsp, wsz, prio, (tfunc_t)thread, arg); diff --git a/readme.txt b/readme.txt index 40bd2925f..719d29a56 100644 --- a/readme.txt +++ b/readme.txt @@ -83,6 +83,8 @@ ***************************************************************************** *** 2.5.1 *** +- FIX: Fixed misplaced declarations in lwip_bindings sys_arch.c (bug 3571053) + (backported to 2.4.3). - FIX: Fixed double definition of sd1fel and sd2fel breaks Posix simulator (bug 3570532). - FIX: Fixed Ethernet PHY power down scheme prevents using LAN8720A (bug