From bd483fa229dd4b941e2a707314811af581531fad Mon Sep 17 00:00:00 2001 From: goldsimon Date: Mon, 24 Apr 2017 10:29:46 +0200 Subject: [PATCH] Revert "Fixed bug #50838 (mem.c needs SYS_ARCH_PROTECTION around MEM_STATS)" This reverts commit 3770adccfd3d6103f8b26c4ad1849fbb5297476c. --- src/include/lwip/stats.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/include/lwip/stats.h b/src/include/lwip/stats.h index 5cde4a09..bcda2ace 100644 --- a/src/include/lwip/stats.h +++ b/src/include/lwip/stats.h @@ -387,9 +387,9 @@ void stats_init(void); #if MEM_STATS #define MEM_STATS_AVAIL(x, y) lwip_stats.mem.x = y -#define MEM_STATS_INC(x) SYS_ARCH_INC(lwip_stats.mem.x, 1) -#define MEM_STATS_INC_USED(x, y) SYS_ARCH_INC(lwip_stats.mem.x, y) -#define MEM_STATS_DEC_USED(x, y) SYS_ARCH_DEC(lwip_stats.mem.x, y) +#define MEM_STATS_INC(x) STATS_INC(mem.x) +#define MEM_STATS_INC_USED(x, y) STATS_INC_USED(mem, y) +#define MEM_STATS_DEC_USED(x, y) lwip_stats.mem.x -= y #define MEM_STATS_DISPLAY() stats_display_mem(&lwip_stats.mem, "HEAP") #else #define MEM_STATS_AVAIL(x, y)