aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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