liuhaitao
97240b494d
libc/time: add strptime porting support
...
lib_strptime.c copies from android bionic/libc/tzcode.
Change-Id: Ia4fadacd8e92e97ef3606ee2017d3bdd83370180
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-04-09 18:27:08 +08:00
Xu Xingliang
f8c5fe24fb
net: Forward socket option only when the socket type is usrsock
...
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
Change-Id: I5e102c4c648936f96834120e2c508f7072436246
2021-04-09 16:58:55 +08:00
Jiuzhu Dong
d3843bf334
lirc: fix bug about lirc_raw_event
...
N/A
Change-Id: If00d0a7e4e4f9a0d9119b6a170cffd993f23f71a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-04-09 12:28:54 +08:00
Peter Bee
487101234b
libc/sendfile: fix lib_sendfile() partial send
...
MIRTOS-482
Fixing the behavior of sending only a few bytes of a file
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
Change-Id: Ieae600028b79794ede3ac576c2cd015d8df58b05
2021-04-08 14:53:11 +08:00
chao.an
48b129f412
Revert "armv8-m: Fix EXC_RETURN for non-secure usage"
...
This reverts commit 2ecfddb430 .
Change-Id: I9c01dc9b6eada54642787c8a3395cb32c8c4f7d4
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-04-07 18:37:03 +08:00
Xiang Xiao
a2ac63996c
arch/arm: Remove g_irqtmp, g_undeftmp and g_aborttmp
...
to avoid multiple CPU access them concurrently in SMP case
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-06 22:51:12 +08:00
Xiang Xiao
da53ed53f9
arch/armv7-r: Add FIQ stack CONFIG_ARCH_INTERRUPTSTACK > 7
...
just like what has done on armv7-a
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-06 22:50:17 +08:00
Xiang Xiao
f7ce5bf264
arch/armv7-a: Remove the special process of the nest level
...
it shouldn't need anymore
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-06 22:50:17 +08:00
Xiang Xiao
d4a6f5d2d4
arch/arm: Minor style fix
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-06 22:50:17 +08:00
Alin Jerpelea
5b1a004f96
arch: arm: armv7-r: fix nxstyle errors
...
Fix nxstyle errors to pass CI
Signed-off-by: Alin Jerpelea <alin.jerpelea@sony.com>
Change-Id: I61034059d1299b93ca36f5ad06fa94a215ae9d7e
2021-04-06 22:48:46 +08:00
Alin Jerpelea
320d334d59
arch: arm: armv7-r: 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 22:47:43 +08:00
chao.an
f3c1a530fe
fs/inode: correct the return value
...
Change-Id: I597c1eb5899eb8f933c50fdfa5abeeb0acf5f37f
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-04-06 18:18:49 +08:00
Xiang Xiao
bab1221108
arch/arm: Fix the style issue in assemble files
...
remove the unused header file and mimic the difference between sub arch
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-04-06 17:39:25 +08:00
Alin Jerpelea
aa2d97d356
arch: arm: armv8-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
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