mirror of
https://git.savannah.nongnu.org/git/lwip.git
synced 2025-08-03 21:14:40 +08:00
Lightweight protection macros were not defined if NO_SYS was defined.
This commit is contained in:
parent
cb6cec0404
commit
90bc698a40
@ -36,6 +36,10 @@
|
|||||||
|
|
||||||
#include "lwip/opt.h"
|
#include "lwip/opt.h"
|
||||||
|
|
||||||
|
#define SYS_ARCH_DECL_PROTECT(lev)
|
||||||
|
#define SYS_ARCH_PROTECT(lev)
|
||||||
|
#define SYS_ARCH_UNPROTECT(lev)
|
||||||
|
|
||||||
#if NO_SYS
|
#if NO_SYS
|
||||||
|
|
||||||
/* For a totally minimal and standalone system, we provide null
|
/* For a totally minimal and standalone system, we provide null
|
||||||
@ -112,16 +116,15 @@ void sys_mbox_fetch(sys_mbox_t mbox, void **msg);
|
|||||||
implementation */
|
implementation */
|
||||||
#ifndef SYS_ARCH_PROTECT
|
#ifndef SYS_ARCH_PROTECT
|
||||||
#ifdef SYS_LIGHTWEIGHT_PROT
|
#ifdef SYS_LIGHTWEIGHT_PROT
|
||||||
#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev
|
|
||||||
#define SYS_ARCH_PROTECT(lev) lev = sys_arch_protect()
|
|
||||||
#define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev)
|
|
||||||
|
|
||||||
|
#undef SYS_ARCH_DECL_PROTECT
|
||||||
|
#define SYS_ARCH_DECL_PROTECT(lev) sys_prot_t lev
|
||||||
|
#undef SYS_ARCH_PROTECT
|
||||||
|
#define SYS_ARCH_PROTECT(lev) lev = sys_arch_protect()
|
||||||
|
#undef SYS_ARCH_UNPROTECT
|
||||||
|
#define SYS_ARCH_UNPROTECT(lev) sys_arch_unprotect(lev)
|
||||||
sys_prot_t sys_arch_protect(void);
|
sys_prot_t sys_arch_protect(void);
|
||||||
void sys_arch_unprotect(sys_prot_t pval);
|
void sys_arch_unprotect(sys_prot_t pval);
|
||||||
#else /* SYS_LIGHTWEIGHT_PROT */
|
|
||||||
#define SYS_ARCH_DECL_PROTECT(lev)
|
|
||||||
#define SYS_ARCH_PROTECT(lev)
|
|
||||||
#define SYS_ARCH_UNPROTECT(lev)
|
|
||||||
#endif /* SYS_LIGHTWEIGHT_PROT */
|
#endif /* SYS_LIGHTWEIGHT_PROT */
|
||||||
|
|
||||||
#endif /* SYS_ARCH_PROTECT */
|
#endif /* SYS_ARCH_PROTECT */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user