aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-29 08:39:25 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-09-29 08:39:25 +0000
commitdfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341 (patch)
tree9c581ef612e9a97d80a7a5acb86f7712555d3bd7
parent9d1013bf3117d74c668f2430c80f49271703737e (diff)
downloadChibiOS-dfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341.tar.gz
ChibiOS-dfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341.tar.bz2
ChibiOS-dfe1ebcefa6c5f5fd7ee60da8d84d7c5e1015341.zip
Fixed bug 3571053.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4727 35acf78f-673a-0410-8e92-d51de3d6d3f4
-rw-r--r--os/various/lwip_bindings/arch/sys_arch.c7
-rw-r--r--readme.txt2
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