[bug][lwip] 修复lwip临界区保护的bug
This commit is contained in:
parent
ce06e5e160
commit
485df7a1f4
|
@ -100,8 +100,8 @@ void sys_arch_assert(const char* file, int line);
|
|||
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
|
||||
|
||||
#define SYS_ARCH_DECL_PROTECT(level)
|
||||
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
|
||||
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
||||
#define SYS_ARCH_DECL_PROTECT(level) register rt_base_t level
|
||||
#define SYS_ARCH_PROTECT(level) do {level = rt_hw_interrupt_disable();} while(0)
|
||||
#define SYS_ARCH_UNPROTECT(level) do {rt_hw_interrupt_enable(level);} while(0)
|
||||
|
||||
#endif /* __ARCH_CC_H__ */
|
||||
|
|
|
@ -91,8 +91,8 @@ void sys_arch_assert(const char* file, int line);
|
|||
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
|
||||
|
||||
#define SYS_ARCH_DECL_PROTECT(level)
|
||||
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
|
||||
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
||||
#define SYS_ARCH_DECL_PROTECT(level) register rt_base_t level
|
||||
#define SYS_ARCH_PROTECT(level) do {level = rt_hw_interrupt_disable();} while(0)
|
||||
#define SYS_ARCH_UNPROTECT(level) do {rt_hw_interrupt_enable(level);} while(0)
|
||||
|
||||
#endif /* __ARCH_CC_H__ */
|
||||
|
|
|
@ -91,8 +91,8 @@ void sys_arch_assert(const char* file, int line);
|
|||
#define LWIP_PLATFORM_DIAG(x) do {rt_kprintf x;} while(0)
|
||||
#define LWIP_PLATFORM_ASSERT(x) do {rt_kprintf(x); sys_arch_assert(__FILE__, __LINE__);}while(0)
|
||||
|
||||
#define SYS_ARCH_DECL_PROTECT(level)
|
||||
#define SYS_ARCH_PROTECT(level) rt_enter_critical()
|
||||
#define SYS_ARCH_UNPROTECT(level) rt_exit_critical()
|
||||
#define SYS_ARCH_DECL_PROTECT(level) register rt_base_t level
|
||||
#define SYS_ARCH_PROTECT(level) do {level = rt_hw_interrupt_disable();} while(0)
|
||||
#define SYS_ARCH_UNPROTECT(level) do {rt_hw_interrupt_enable(level);} while(0)
|
||||
|
||||
#endif /* __ARCH_CC_H__ */
|
||||
|
|
Loading…
Reference in New Issue