Skip to content

Commit 37bb628

Browse files
authored
lwIP-1.4: use fixed locking functions (#6455)
1 parent 45dbc65 commit 37bb628

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

tools/sdk/lib/liblwip_gcc.a

102 KB
Binary file not shown.

tools/sdk/lwip/include/arch/cc.h

+5-3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
#include "osapi.h"
4141
#define EFAULT 14
4242
#include <sys/pgmspace.h>
43+
#include <../../../cores/esp8266/core_esp8266_features.h>
4344

4445
//#define LWIP_PROVIDE_ERRNO
4546

@@ -84,9 +85,10 @@ typedef unsigned long mem_ptr_t;
8485
#define LWIP_PLATFORM_ASSERT(x)
8586
#endif
8687

87-
#define SYS_ARCH_DECL_PROTECT(x)
88-
#define SYS_ARCH_PROTECT(x)
89-
#define SYS_ARCH_UNPROTECT(x)
88+
typedef uint32_t sys_prot_t;
89+
#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev
90+
#define SYS_ARCH_PROTECT(lev) lev = xt_rsil(15)
91+
#define SYS_ARCH_UNPROTECT(lev) xt_wsr_ps(lev)
9092

9193
#define LWIP_PLATFORM_BYTESWAP 1
9294
#define LWIP_PLATFORM_HTONS(_n) ((u16_t)((((_n) & 0xff) << 8) | (((_n) >> 8) & 0xff)))

0 commit comments

Comments
 (0)