Alin Jerpelea
005d8390e6
arch: arm: armv7-m: fix nxstyle errors
...
Fix nxstyle errors to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
2021-04-06 17:38:44 +08:00
Alin Jerpelea
4d47f63047
arch: arm: armv7-a: fix nxstyle errors
...
Fix nxstyle errors to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
Change-Id: Ic7a7ea8ebb666c44e848cc5e05caebde2b2dc09a
2021-04-06 17:36:09 +08:00
Alin Jerpelea
c56759f229
arch: arm: armv7-a: Author Gregory Nutt: update licenses to Apache
...
Gregory Nutt has submitted the SGA and we can migrate the licenses
to Apache.
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
2021-04-06 17:36:09 +08:00
Alin Jerpelea
832555e8f8
arch: arm: armv6-m: fix nxstyle errors
...
Fix nxstyle errors to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com >
2021-04-06 17:36:09 +08:00
Michael Jung
2ecfddb430
armv8-m: Fix EXC_RETURN for non-secure usage
...
With TrustZone support in armv8-m the bit-fields in EXC_RETURN have been
extended. Bit 6 ('S') now specifies whether the interrupted program was
running in the Non-Secure (S=0) or Secure (S=1) security state.
Furthermore, Bit 0 ('ES' - Exception Secure) specifies the
security state athe exception is taken to (0: Non-Secure, 1: Secure).
When NuttX is run together with TrustedFirmware-M as the application in
the non-secure world both the S and the ES bits have to be set to '0'.
For armv8-m those are also the correct values if TrustZone is not
implemented on the respective MCU or if it is disabled.
Signed-off-by: Michael Jung <mijung@gmx.net >
2021-04-06 17:33:28 +08:00
Xiang Xiao
037dd2acf4
mm/tlfs: Remove the critical section
...
follow the mm heap change
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Ic9700e7ab3629d755723ad8b1c5b1c5cc896a518
2021-04-06 15:37:55 +08:00
Xiang Xiao
0d12e8bae5
libc/assert: Reference the expression in all case
...
to avoid the warning "defined but not used"
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I55b7c092d0f2e5882fc1784987657c10cdf2d90b
2021-04-06 14:47:51 +08:00
Xiang Xiao
d7adcfd2b9
Refine UNUSED macro to avoid any side effect
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I35d858fc6fb2e0e24b993ab7dd2203c9dd35232a
2021-04-06 14:46:28 +08:00
Xiang Xiao
64cc68b588
vfs/lfs: Simplify the lookahead_size equation
...
the final result is same(keep 8 bytes alignment)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I664879960c898a7f1518236b24a2b3ee8a9998d0
2021-04-02 21:45:09 +08:00
Xiang Xiao
a616515585
fs/lfs: Update version to 2.4.0
...
And redirect assert and log to NuttX's version
which is possible after:
commit c0cc0a417e727764ccce6f1284e3570898d750e6
Author: Christopher Haster <chaster@utexas.edu >
Date: Mon Jan 18 14:01:53 2021 -0600
Enabled overriding of LFS_ASSERT/TRACE/DEBUG/etc
This is useful for testing the new erroring assert behavior in CI.
Asserts do not error by default, so this macro needs to be overriden.
It is possible to test this behavior using the existing option of
overriding lfs_util.h with a custom file, by using a small sed
one-line script. But this is much simpler.
This does raise the question if more of the configuration options in
lfs_util.h should be opened up for function-like macro overrides.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Ie70814e1a2777e19a7310358d3a94ff965287d7b
2021-04-02 21:45:09 +08:00
ligd
df648f72c8
sim: add setitimer to nuttx-names.in
...
Change-Id: Id6d91d81b3d67cbe9215eb94f4ef394d61156fe8
2021-04-02 12:59:43 +08:00
ligd
0dfe02e842
sim: fix host_sleep unit error
...
Change-Id: Iaddd6381eb9870b709147d33b36482ae2e37c04d
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-04-01 18:12:56 +08:00
ligd
f82d5787b6
sim/up_oneshot.c: take host time as current
...
Change-Id: I34625f3d3f9557a103017124388dba6104aba7cc
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-04-01 18:11:37 +08:00
ligd
099c919d2e
sim: remove CONFIG_SIM_WALLTIME fast timing maybe harmful for IOs
...
Change-Id: Ic4ff5ec0aa99d2d229a07c4d1a9a4dae738d3cd9
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-04-01 18:11:37 +08:00
chao.an
177635dda3
libc/execinfo: add dump_stack support
...
Change-Id: I8485bd36caf09341ce5a787ec8cce7883e46043d
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-31 17:57:15 +08:00
chao.an
3330b95042
libc/execinfo: add backtrace support
...
Change-Id: I2fa28fcfba359eb4e5118881f10cc194ebb6c298
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-31 17:17:07 +08:00
丁欣童
0e33818954
Add include header file <sys/types.h> to rpmsg.h.
...
N/A
When use netpacket/rpmsg.h,the compiler prompt that sa_family_t is not defined.
Signed-off-by: 丁欣童 <dingxintong@xiaomi.com >
Change-Id: Id2a0c51f992cca43917587423201ab27b92ed54f
2021-03-31 14:07:39 +08:00
Huang Qi
66516a8a7e
sys/socket.h: Add "Socket"-level control message types
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: I05f8dd29501f6b06cdd278e0e416f210a98aa6b0
2021-03-31 12:08:25 +08:00
Xiang Xiao
0ec76c44ca
sched/signal: Implement SA_NODEFER and SA_RESETHAND
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I9baa72b272c8877022cd94722824f393c7087721
2021-03-29 12:35:58 +08:00
Xiang Xiao
fabe4d1d10
sys/stat.h: Add S_IREAD, S_IWRITE and S_IEXEC macro
...
to be more compatible with BSD libc
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I4067f8cac6c465a3f1b06906e2e274a660792d93
2021-03-29 12:35:58 +08:00
Xiang Xiao
a6d4a69e1f
serial: Don't comment out ws_[x|y]pixel field from winsize struct
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I3d2435c3950e8f60b50d9af8a54c65bd0d16f2e0
2021-03-29 12:35:58 +08:00
Xiang Xiao
8087067199
arm/machine: Sync with the latest newlib(1debd4d635c291c6da90)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: Ic616d616d9fa62b6dc19233258ab3099a402bad0
2021-03-29 12:35:58 +08:00
chao.an
4a26e4a592
net/local: correct the send return length
...
Change-Id: I8446c44f9cbcbf11bac4fcc9defbdfc4d09bba98
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-27 12:33:47 +08:00
chao.an
dc02221828
libc/string: Use Byte-Shift algorithm for very long needles
...
Reference here:
https://github.com/taleinat/byteshift_strstr
Change-Id: I1ef0676e01bea75e40ac688dcd50ef8b37c9a7e6
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-26 23:39:23 +08:00
YAMAMOTO Takashi
31819fba12
netdb.h: Add NI_MAXHOST and NI_MAXSERV
...
* These are not parts of the standards as far as I know.
* These are provided by many platforms. (GLIBC, BSD, Windows, etc)
* These are convenient.
2021-03-26 22:01:13 +08:00
Huang Qi
44ec147ff7
libc/machine: introduce optimized memchr/memcpy/memmove/strcmp/strlen
...
from newlib/bionic for armv7-a
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: I079d929020c353f73033a7e2189f34430e2b9c09
2021-03-26 17:21:17 +08:00
Huang Qi
aedf823224
arch/arm: Use macro defined swi range in dispatch_syscall
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: Ia8503a13c5b04fa8cc13cee74b75b19623986c1d
2021-03-25 11:21:31 +08:00
chao.an
c1b15fd800
boards/rcS: remove the dual-stack delay
...
Change-Id: Iae418065e582e906a9d57c0ef2da55dcfafb432b
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-24 22:19:26 +08:00
chao.an
823d2c6243
wireless/bluetooth: add pending command filter
...
Change-Id: I4243ffce4299154452cf232fa4d98b568ff86234
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-24 18:31:46 +08:00
chao.an
49dda1dd8f
wireless/bluetooth: break the pending read if circbuf is available
...
Change-Id: Ie3496c9f46bd1890dcbab157d5bbc1d2ce2b4da1
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-24 18:29:25 +08:00
Peter Bee
fe447997dd
boards/sim: kvdbd no autostart when remote server
...
N/A
Works with kvdb remote server version
Signed-off-by: Peter Bee <bijunda1@xiaomi.com >
Change-Id: Ib79de8c1c1eda757efe533b4fecdce90b1c61f50
2021-03-24 11:49:15 +08:00
Peter Bee
a84c81f4d5
net/rpmsg: add multi-iov support
...
N/A
Add multi-iov support for rpmsg sockets
Change-Id: I188e41972be2942799fd06d4b530e292125fbf33
Signed-off-by: Peter Bee <bijunda1@xiaomi.com >
2021-03-24 10:55:17 +08:00
chao.an
2dbe215f4c
net/tcp: support bind the same port with different domain
...
Reference here:
https://man7.org/linux/man-pages/man7/ipv6.7.html
IPV6_V6ONLY slice
Change-Id: Ia7f12a5a676536ba8d347278d30d45e33c6838f5
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-24 00:10:58 +08:00
liuhaitao
df8d2fcb04
libc: correct zoneinfo genromfs source directory
...
Or genromfs failed to generate the right romfs.img
Change-Id: Icbcc2e89da1ede644b994d33e70f1a48662c412b
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com >
2021-03-23 20:48:00 +08:00
ligd
cfa3a9f634
sched/init/nx_start.c: enter_critical_section when check heap & stack in idle
...
Change-Id: I2ef95ee8e1dc1ba3e74c1d6c8c6af20f53be85c7
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-23 20:21:01 +08:00
liuhaitao
563c2c15cf
libc: update stream getoffset to handle write case
...
MIRTOS-242
Change-Id: I80b01b446446d5a631d40822f220a0177a95e7e6
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com >
2021-03-22 22:56:15 +08:00
Jiuzhu Dong
293c7e6b6f
sched/dupfile: ignore dup failed when task_create
...
MIRTOS-517
Change-Id: I2387ab447f0d8ed9429960922a72de35b2730acb
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
Signed-off-by: ligd <liguiding1@xiaomi.com >
2021-03-22 20:56:12 +08:00
Xiang Xiao
152db4f0bf
fs/littlefs: Suppport the duplication function
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I64191bdeab3723b22476d27c44852493eed1b07e
2021-03-22 17:43:21 +08:00
Jiuzhu Dong
35229a917b
rtc/rpmsg: support server and client to set time each other
...
N/A
Change-Id: I5d13f424cb636a79a9fd98c275786771c213ddb8
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-22 12:16:58 +08:00
chao.an
e8ce4f7f20
sim/remoteproc: boot the usrsock at startup
...
Change-Id: I918eb2256f53d45a8e9b495db2478b70a6b81b97
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-20 00:25:04 +08:00
chao.an
6fe0941119
net/tcp: correct the port byte order
...
Change-Id: Ic68e9ff1ddd8b0f00c0a431bf108669edb8aa4fd
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-20 00:25:01 +08:00
chao.an
f78bc74d6c
net/usrsock: add send multi-elements support
...
Change-Id: I514cbc98b611f9eb6c76a00c527675cf44bef14a
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-20 00:25:01 +08:00
Huang Qi
828baa181e
arch/sim: Fix warning of duplicated object
...
N/A
Signed-off-by: Huang Qi <huangqi3@xiaomi.com >
Change-Id: I91cf182a396fc8f8024faf65c1cc7bf45cf34bbc
2021-03-19 17:42:11 +08:00
chao.an
a561e15406
usrsock/recv: adjust the close timing to avoid data discard
...
Change-Id: I7bf1cf06c3b73dc32ff38388926b7ffb979b832d
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-19 14:53:07 +08:00
zhouliang3
4735c430f0
nuttx/wamr: WAMR configuration based on NSH added
...
N/A
Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com >
Change-Id: Id17d3ae72142d83bb8c1f7a0186c66d4e66b52cf
2021-03-19 12:44:29 +08:00
chao.an
2919001e3e
net/tcp: do not start the tcp monitor if unestablished
...
Change-Id: Iace9ccfc73086db442db04b95bc508dd48827b82
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-19 11:11:40 +08:00
chao.an
08c6d63e9a
usrsock/recv: adjust the close timing to avoid data discard
...
Change-Id: I9dd97c8995201f7a4ca7f6198120ab2bd89d7ed9
Signed-off-by: chao.an <anchao@xiaomi.com >
2021-03-19 11:11:40 +08:00
Jiuzhu Dong
e364beaf87
fs/mmap: return EBADF when file descriptors is invalid
...
MIRTOS-504
Change-Id: I06276be2bbc67e4d6dd04bfd6b5a205bdf639d99
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com >
2021-03-18 22:26:46 +08:00
Xiang Xiao
9d17731a81
arch/arm: Fix syscall number out of swi range in thumb mode
...
The immediate number is 8bits in thumb mode:
+---------------------+---------------+
|15 14 13 12 11 10 9 8|7 6 5 4 3 2 1 0|
+---------------------+---------------+
| 1 1 0 1 1 1 1 1| imm8 |
+---------------------+---------------+
The immediate number is 24bits in arm mode:
+-----------+-------------------------------------------------------------------------+
|31 30 29 28|27 26 25 24|23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0|
+-----------+-----------+-------------------------------------------------------------+
| cond | 1 1 1 1| imm24 |
+-----------+-----------+-------------------------------------------------------------+
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com >
Change-Id: I62503cdc377fcee81864e88e981d389bce2e1b45
2021-03-18 18:03:01 +08:00
mage1
138b71fb45
LTP: fix stacke overflow bug in case ltp_interfaces_pthread_attr_setstacksize_1_1
...
MIRTOS-497
set PTHREAD_STACK_MIN to DEFAULT_TASK_STACKSIZE under sim platform.
Change-Id: I376f5b2bd5a2f205947f3c19b2a881db6a1c1522
2021-03-18 15:20:44 +08:00