Commit Graph

42 Commits

Author SHA1 Message Date
Meco Man bd24c67d06 define RT_USING_BIG_ENDIAN for the long-term version 2021-10-18 17:41:14 -04:00
Bernard Xiong 4423b487c5
Merge pull request #5044 from BernardXiong/libc_pr
[libc] remove rtlibc
2021-09-11 20:00:39 +08:00
Grissiom 1ebf7b5196 [Netif] Fix the eth_tx_msg protection
The ethernetif use semaphore netif->tx_ack to protect the local variable
`struct eth_tx_msg msg` in function `ethernetif_linkoutput`. But the
function could be called in multiple context: LwIP "tcpip" thread, "erx"
thread(on linkup) and any user thread that call `udp_sendto`. So the
global semaphore protection is not sufficient. It could only wakeup the
top priority waiting thread instead of the thread that owns the `msg`
and may result the `msg` next in the mailbox got destructed.

So to use a `rt_completion` within the `struct eth_tx_msg` and
synchronize on that. This could deal the ownership issue in an easy way.
2021-09-11 13:11:57 +08:00
Bernard Xiong 8da9f78d72 [libc] remove rtlibc 2021-09-11 11:07:51 +08:00
Meco Man e18d44940f [finsh] 修复由于移除finsh导致__cmd_xxx命令无法使用的问题 2021-09-05 01:57:26 -04:00
guo 553b57e3a9
Merge pull request #4897 from ImFovery/master
Update sockets.c
2021-08-31 16:15:44 +08:00
马志远 221da7f464 Remove C Style Command Shell 2021-08-23 17:30:05 +08:00
Meco Man 396297a993 [ethernetif] replace rt_memcpy with SMEMCPY 2021-08-03 10:33:17 +08:00
Meco Man 4cac267927 [lwip] implement RT_USING_ASM_MEMCPY 2021-08-03 10:27:48 +08:00
ImFovery 406cebe735
Update sockets.c
1、更正lwip_accept()中调用netconn_peer()失败时,netconn_delete()会被调用两次,从而导致进入rt_assert_handler()错误。
原因:(https://savannah.nongnu.org/bugs/?55536) bug #55536: lwIP 2.1.2: netconn_delete() called twice from lwip_accept()
2021-07-29 10:08:39 +08:00
Meco Man 485df7a1f4 [bug][lwip] 修复lwip临界区保护的bug 2021-06-13 15:43:44 +08:00
Meco Man 3b74f44d10 [lwip][cc]调整string.h位置 2021-06-13 13:10:20 +08:00
Meco Man 4c625fcb2f [lwip][cc] LWIP_TIMEVAL_PRIVATE: provided by <sys/time.h>
不需要再判断是否开启libc
2021-06-12 18:40:15 +08:00
Meco Man ac3b3d13dd LWIP2.0.2 2.1.2 移除ERRNO
该定义只应该在141中使用到了
2021-05-22 12:13:31 +08:00
Meco Man 9352fdeba7 从LWIP移除ESHUTDOWN 2021-05-22 12:04:30 +08:00
Meco Man b10bef6f24 [sys/errno.h] 修复lwip报错 2021-05-22 03:20:01 +08:00
Meco Man a5f7635f31 remove libc_errno.h & libc_limits.h 2021-05-22 02:50:35 +08:00
Meco Man dfb8df71c9 [libc]修复因libc移除sys/errno.h文件导致的报错 2021-05-12 14:17:17 +08:00
liuxianliang 962a97b683 [restore] Restore format 2021-04-15 12:50:54 +08:00
liuxianliang ad9c4ea15b [restore] Restore format 2021-04-15 12:43:56 +08:00
liuxianliang 3db7a98a18 [update] change the file encoding to UTF-8. 2021-04-06 11:41:14 +08:00
liuxianliang 2b549d93c8 [fix] change from enter critical area into disable interrupt. 2021-04-06 10:46:31 +08:00
liuxianliang 4431c4796f [fix] remove the possible critical zone risk 2021-03-31 14:59:12 +08:00
liuxianliang 154d73a4e7 [fix] iperf speed test have been stable. 2021-03-31 13:37:19 +08:00
liuxianliang 6d89a9f120 Merge branch 'master' of https://github.com/RT-Thread/rt-thread into develop_one 2021-03-30 10:25:00 +08:00
liuxianliang adaa45eebe [fix] the overflow problem of lwip rx thread mailbox. 2021-03-26 10:04:37 +08:00
yangjie c30a715380 [components]update GPL license to Apache-2.0 2021-03-24 18:59:36 +08:00
Meco Man ab04030f8f revert 2021-03-08 21:53:02 +08:00
Meco Man 3c05a4e719 [compoenets] auto & manual formatted 2021-03-08 18:19:04 +08:00
Meco Man b2d3317c6a remove minilibc 2021-02-23 03:21:16 +08:00
Meco Man 63cd26b0d1 update 2020-12-30 16:32:20 +08:00
Meco Man c2e15e003c add function rt_hw_1ms_tick_get() 2020-12-29 00:08:24 +08:00
David Lin 4f99d988d9
Update ethernetif.c 2020-11-21 12:35:19 +08:00
mysterywolf 22f8b142b6 [revert] [lwip] IAR环境 结构体恢复到之前状态 2020-10-24 18:39:31 +08:00
mysterywolf c7aa6f0619 [fix bug] #3902 2020-10-02 12:00:52 +08:00
mysterywolf a890c67fb4 增加lwip/cc.h LWIP_TIMEVAL_PRIVATE是能与否的平台判断条件 2020-09-08 13:39:40 +08:00
liuduanfei 13e768203d
delete duplicate header files 2020-06-28 23:20:31 +08:00
liuxianliang 0d8f90788f [remove] the doc folder of lwIP 2.1.2
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-23 10:00:58 +08:00
liuxianliang 5af6aa47c1 [update] remove doc doxygen files and add doxygen zip file.
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-22 09:28:48 +08:00
liuxianliang 38db074fca [update] Added custom functions for RT-Thread.
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-20 14:09:33 +08:00
liuxianliang de1fd2bfc4 [add] lwIP 2.1.2 transplantation on RT-Thread.
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-20 14:01:09 +08:00
liuxianliang a9796b90ad [add] the code of original lwIP 2.1.2.
Signed-off-by: liuxianliang <liuxianliang@rt-thread.com>
2020-06-20 13:44:12 +08:00