ligd
8d1ec7b2d0
serial/serial_dma.c: fix warnnings
...
serial/serial_dma.c: In function ‘uart_recvchars_done’:
serial/serial_dma.c:407:7: warning: implicit declaration of function ‘nxsig_kill’ [-Wimplicit-function-declaration]
407 | nxsig_kill(dev->pid, signo);
| ^~~~~~~~~~
Change-Id: I9e1c0341ecce3033889d11fff9ec2b9e3dfe303b
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-06 17:35:56 +08:00
ligd
28a667f3f8
drivers/serial/Kconfig: fix configure warnning
...
warning: (TTY_SIGINT) selects SIG_SIGKILL_ACTION which has unmet direct dependencies (SIG_DEFAULT)
Change-Id: Ied9899d18156742ce4998b40d53a481262dcd84a
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-06 17:35:56 +08:00
chao.an
19947e0414
net/tcp: correct the port byte order
...
1. correct the port byte order
2. Do not re-select the port if the local port has been bind()
Change-Id: Ia83f7d1aab5c2c0007eb4141fcdaa9ccaea3d319
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-06 15:57:41 +08:00
chao.an
c2707b2886
libc: fix compile warning
...
Makefile: 131: target 'bin/lib_strcpy.o' given more than once in the same rule
Makefile: 131: target 'bin/lib_strlen.o' given more than once in the same rule
Change-Id: I45b7640f7986895e4d406a1494616aba65a92453
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-06 13:27:14 +08:00
chao.an
92baf97625
sim: add fluoride config into etc
...
Change-Id: I08958d352b0e2f85524fac5599e6bb8be7acd240
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-05 22:35:38 +08:00
Huang Qi
ab81410372
libc/machine: introduce memchr/memmove/memset/strlen from newlib for armv7-m
...
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: If901402e3dc4e6776521ac18fcd2c61e06e6493b
2021-03-05 18:34:49 +08:00
Jiuzhu Dong
817bf3b28b
sched/wqueue: don't distinguish between primary thread and other thread.
...
N/A
Change-Id: Ibcdf0738a330d352200b97aa38b04d943af369e2
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-05 16:01:23 +08:00
Jiuzhu Dong
46a3d95047
telent: fix crash about telnet client connect
...
N/A
Change-Id: I9afa15a3d8848e77a70f33f5429b6942e6cf8773
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-05 10:33:18 +08:00
Huang Qi
7bb419dae1
libc/machine: Use strcmp from newlib for better performance
...
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: Idbdea04f748243fb9baf7b39d0ed997f7e9a8e3c
2021-03-04 16:44:13 +08:00
Xiang Xiao
5aa9333731
mtd/progmem: Add up_progmem_read callback guarded by ARCH_HAVE_PROGMEM_READ
...
since sometime platform code need do some special action during memcpy
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Id108ef4232376feab3e37e9b3aee9a7927a03bd4
2021-03-04 11:54:59 +08:00
Xiang Xiao
af81097850
mtd/progmem: Let MTD_PROGMEM depend on ARCH_HAVE_PROGMEM
...
and remove the reference of CONFIG_ARCH_HAVE_PROGMEM from code
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I89a73f138d54718ee8bc9345958675d7a2a34ba8
2021-03-04 11:51:25 +08:00
Huang Qi
9fce262860
libc/machine: Use memcpy from newlib for better performance
...
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: Icf49b938e582e46c68a03852a3364c62e7f83976
2021-03-04 10:15:11 +08:00
dongjiuzhu1
4438681a51
mm/umm_heap: move memory-related api from libc/stdlib to umm
...
N/A
Change-Id: I4cf7f2586c8b476336e7d32e518b2c774e6ce746
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-03 22:24:49 +08:00
dongjiuzhu1
3615d34665
net/socket: delete config CONFIG_NSOCKET_DESCRIPTORS
...
N/A
Change-Id: I85c3fdb651fbe5e36540747be92ee75d652f984d
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-03 22:24:42 +08:00
dongjiuzhu1
bb65de6cae
net: unify socket info file descriptor
...
MIRTOS-255
Change-Id: Iee680c8ac07fe87fb6e7900b4f792e0f1ff5036d
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-03 22:23:44 +08:00
ligd
49389e2695
mm/net/sched: fix warnings
...
Change-Id: I92db0e2cb7ff9e63eef8086a7cc084f67045d69c
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-03 19:26:43 +08:00
mage1
15fc1cb23f
mm: add kconfig option to control the memory manger strategy choice.
...
since will will porvide more the one strategy in future.
Change-Id: I73b900c6571f9b71b8239dd72006bdd0a68ee64d
2021-03-03 15:04:27 +08:00
chao.an
60f7f71e6c
net/tcp: fix invaild application preload
...
Change-Id: Ifebe4c2715ccfc0e11d8b45792d51912f110d92e
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-03 00:25:35 +08:00
mage1
465f98384b
mm: Move mm_heap_s related stuff to private header file
...
since it will improve the modularity and reduce the inforamtion explosion
Change-Id: I085b36adb38993a979625a1f4c252d364a15afa1
2021-03-02 22:21:46 +08:00
Peter Bee
a2a31c735e
net/socket: move si_send/recv into sendmsg/recvmsg
...
MIRTOS-272
Implement si_send/sendto/recvfrom with si_sendmsg/recvmsg, instead of
the other way round.
Change-Id: I7b858556996e0862df22807a6edf6d7cfe6518fc
Signed-off-by: Peter Bee <bijunda1@xiaomi.com >
2021-03-02 17:33:01 +08:00
chao.an
800421e231
net/tcp: cache the drop packet to avoid retransmit
...
Change-Id: Ia27ed17a7708df8481ac96d9a3a870b6ccef4d24
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-02 10:12:56 +08:00
chao.an
608f380aee
binfmt/Makefile: remove the specified prefix from target variables
...
Change-Id: Ic79368950a543ab5c39e286e4b5d062529a83a3c
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-01 21:11:16 +08:00
chao.an
0a1ba622b1
make/clean: clean the OBJ directly if declare in subdirectory
...
Change-Id: I9b78e83f571f9e427a49af04e0b718d941f003e4
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-01 21:10:53 +08:00
chao.an
9c946e2af6
make/archive: replace the dependency to preprequisite list
...
Change-Id: Id63f3cd32906461a54cb016ef8078d4d922845e2
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-01 21:10:15 +08:00
chao.an
bbdf87247f
tools/mkdeps: generate the full path dependencies
...
Change-Id: I60ff42c40ea8071ac86e6e06aafeb2a9f4ec3698
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-01 21:09:49 +08:00
chao.an
3a658ee32c
mm/circbuf: fix compile warning
...
circbuf/circbuf.c:133:14: warning: 'len' may be used uninitialized in this function [-Wmaybe-uninitialized]
133 | circ->head = len;
| ~~~~~~~~~~~^~~~~
circbuf/circbuf.c:106:10: note: 'len' was declared here
106 | size_t len;
| ^~~
Change-Id: I60e42b88e98838f5654d84b70f109a4df5a7ff26
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-01 16:14:25 +08:00
ligd
43742ca827
debug tools: add heap & stack check in idle thread
...
N/A
Change-Id: Iba6f5cdffb1336697096c71fca86c9ece584225f
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-01 10:41:09 +08:00
chao.an
87de0294a0
mm/iob: add iob_free_queue() interface
...
Change-Id: Ic06d9725e6b7ff4aac554f735d4c88bdec519d18
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-02-26 21:58:25 +08:00
chao.an
af341ee4fc
mm/iob: rename the iob_free_queue() to iob_destroy_queue()
...
make the semantics more precise
Change-Id: Ie3ac87d6a478cdd65e9129e708afc833f0a124b0
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-02-26 20:38:44 +08:00
liuhaitao
63829c6895
Revert "net/socket: delete config CONFIG_NSOCKET_DESCRIPTORS"
...
This reverts commit a0be36d9c2 .
2021-02-26 10:24:26 +08:00
ligd
df76063a35
Revert "net: unify socket info file descriptor"
...
This reverts commit 27b332283e .
2021-02-26 10:21:02 +08:00
ligd
a25ad34d82
Revert "mm/umm_heap: move memory-related api from libc/stdlib to umm"
...
This reverts commit 187b6c0742 .
2021-02-26 10:20:08 +08:00
Jiuzhu Dong
187b6c0742
mm/umm_heap: move memory-related api from libc/stdlib to umm
...
N/A
Change-Id: Ie10393fc8630016dbca27f3c327431fad3b375fb
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-25 16:54:05 +08:00
Jiuzhu Dong
27b332283e
net: unify socket info file descriptor
...
N/A
Change-Id: I9bcd21564e6c97d3edbb38aed1748c114160ea36
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-25 16:53:58 +08:00
Jiuzhu Dong
a0be36d9c2
net/socket: delete config CONFIG_NSOCKET_DESCRIPTORS
...
N/A
Change-Id: I7d10ec460c351e4fbcdc19b3a8284dcb77073722
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-25 16:53:55 +08:00
Peter Bee
ad5c34bde1
boards/sim: add delay to allow kvdbd fully startup
...
N/A
This allows some persist.*.disable properties to work correctly.
Change-Id: Ie81f0d6da04b998175475be56b694768f8b2235b
Signed-off-by: Peter Bee <bijunda1@xiaomi.com >
2021-02-25 11:54:02 +08:00
Xiang Xiao
20a74de9a8
fs/lfs: lfs_file_sync() when littlefs_open
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Signed-off-by: ligd <liguiding1@xiaomi.com >
Change-Id: I8935f7aee414580174141f4b114b5faf03ffafd5
2021-02-24 18:35:53 +08:00
Xiang Xiao
ff25503236
fs/lfs: Remove semret temporary variable
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I2df74c7d42fac25c4b010e6b10c2af36f555c480
2021-02-24 18:31:11 +08:00
guowei15
e2dce4e2ec
arm/setjmp.h:add c++ support
...
N/A
Change-Id: I619cc15570adeff10f3a9b69bf9a3cff83e625c1
Signed-off-by: guowei15 <guowei15@xiaomi.com >
2021-02-24 16:41:57 +08:00
guowei15
dee30cae27
arm/setjmp.h:fix return_function undefined
...
N/A
Change-Id: Ic72fd8053b88cf349922154696fd8c3163cd850a
Signed-off-by: guowei15 <guowei15@xiaomi.com >
2021-02-24 10:11:19 +08:00
Xiang Xiao
4b3b32478a
pthread: Change the default name from <pthread> to <0xyyyyyyyy>
...
since it's very easy to identify thread through entry pointer
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-02-22 16:07:34 +08:00
Xiang Xiao
f2f39c7e44
fs/procfs: Avoid the duplicated 0x prefix in pthread cmdline
...
like this:
... <pthread> 0x0x341de68c
by removing "0x" from format string
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
2021-02-22 16:05:26 +08:00
Peter Bee
1cd87d6f97
fs/mmap: add fd validation to correct errno
...
MIRTOS-111
Errors EBADF correctly. This is only a quick fix, and a lot needs
to be done with mmap().
Change-Id: Ica88360972447fbdd7c6af3bf76d8eeba4747db2
Signed-off-by: Peter Bee <bijunda1@xiaomi.com >
2021-02-22 15:40:20 +08:00
chao.an
a77d103263
net/arp: add timeout to avoid infinite send wait
...
add timeout to avoid infinite send wait if the network device is unreachable
Change-Id: I839a5fe1fb64b7d6eee7ad28d93d2b27f067b915
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-02-22 10:37:58 +08:00
Peter Bee
3cc8acd454
boards/sim: add kvdb server start on boot
...
N/A
Works with kvdb server version
Change-Id: I763b39e80795201adb0138f3287e63c056d859fe
Signed-off-by: Peter Bee <bijunda1@xiaomi.com >
2021-02-20 16:11:37 +08:00
Jiuzhu Dong
d1f3707798
signal: set SIGRTMIN to SIGUSR1 because signo 0 don't catch.
...
MIRTOS-434
Change-Id: I600fed48d25e19c229aac899508b86ddfebb24f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-19 16:51:08 +08:00
Jiuzhu Dong
fc2b0eb037
multi-uorb test config
...
N/A
Change-Id: Ie43cbe28d87e9482dcd55ef23585b7865a095b4c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-18 09:42:08 +08:00
Xiang Xiao
897270bcbf
net/local: Add an option to specify the prefix of named pipe
...
N/A
to avoid the user create socket under the real filesystem
which isn't supported by nuttx VFS yet.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Ib04c90e9c3c5a215bfda65515498d81e5f834895
2021-02-17 19:29:56 +08:00
Jiuzhu Dong
de92bc7fad
driver/sensor: gets the capacity of the hardware fifo
...
N/A
to hold the number of events
Change-Id: I58a9ad07913c7b189e1fd229ab22e91e220e01f6
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-09 11:51:09 +08:00
Jiuzhu Dong
94f6836d14
driver/sensor: Fetch(with O_NONBLOCK) will directly return.
...
N/A
when sensor is disable.
Change-Id: I02c02aa447ee0b0d681082b4209ecd36e10f2547
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-02-09 11:50:50 +08:00