Commit graph

42981 commits

Author SHA1 Message Date
chao.an
f70bc7c5f1 net/local: add FIONSPACE support
Change-Id: Ib96079c6ef7fe3df60ee9f83330b6ed55718bc5f
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-09 20:02:04 +08:00
Jiuzhu Dong
04b3a17662 rpmsg_socket: add prefix "rpmsg-socket" for the name of rpmsg endpoint
Change-Id: If731fb8df651986d944ccbb4f0ba9862b7164676
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-09 16:56:49 +08:00
Jiuzhu Dong
06ef56386b getaddrinfo: support AF_RPMSG
The hostname is as rp_cpu, the servname is as rp_name

Change-Id: Icc2128f26192fe71e657dc6b65cec6f104d31aa2
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-09 15:29:33 +08:00
Jiuzhu Dong
a214fe03eb getaddrinfo: support AF_LOCAL
Change-Id: I1e6a5d3cb64acaeeecad49315ea5e5874bc9440e
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-09 15:29:33 +08:00
chao.an
e2b71ef804 vfs/poll: remove inode check since which could be NULL
Change-Id: Ib9a5a44e12acaa82e255028d7749bea9a8a371ed
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-09 11:39:46 +08:00
chao.an
3118efa317 sched/pidhash: init g_pidhash to NULL to avoid wild pointer
Change-Id: Icbc70a850efb47eaaf942711430c72980c4bb95c
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-09 11:28:20 +08:00
zhuyanlin
269266638b xtensa:cache: fix typo error
use addr instead of add
2021-09-08 17:49:47 +08:00
zhuyanlin
3f9fbfdc41 arch:xtensa: add xtensa_cache code support
Add xtensa_cache code support
2021-09-08 11:40:17 +08:00
zhuyanlin
db3fb1ba58 arch:xtensa: add XTENSA_CACHE config support
Add support for XTENSA_HAVE_ICACHE & XTENSA_HAVE_DACHE
2021-09-08 11:40:13 +08:00
zhuyanlin
24b658f023 makefile: let clean_context in distclean command
In multi-jobs build, `distclean` may be faster than `clean_context`,
Fix the case `distclean` use the dirctorys that have been
removed by `clean_context` in board/xtensa with xt-xcc
2021-09-08 11:40:10 +08:00
liuhaitao
5e67443c71 checkpatch.sh: add check gerrit Change-ID support
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
Change-Id: Iaf6ebbee9337fb021b171385626d7c5bf8860e2c
2021-09-08 10:34:36 +08:00
Jiuzhu Dong
3149af15b9 lib_fread: return the number of bytes when error occurs.
Change-Id: I12228f53cf928c9f29bf739e57a25bca120a9ec1
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-07 22:10:31 +08:00
chao.an
be683ba2c9 arm/backtrace: workaround for bes platform
Change-Id: I2998a23a07b2e72c8eed6a3ab11ca459e74b4ce6
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-07 16:49:22 +08:00
chao.an
2c10b3874d arch/arm: correct the function name of up_getsp()
Change-Id: I1454a6187c4eb744cff802a06a96b19a9dadc080
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-07 16:49:18 +08:00
yangjiukui
d699e7ed62 fix: nxstyle: recognize the division operator as a comment.
N/A

the nxstyle check tool recognizes the division operator as
a comment, check the following content to determine whether
it is a comment.

Change-Id: Id07c6668489895b45a1042794bc3acca66cd3c47
Signed-off-by: yangjiukui <yangjiukui@xiaomi.com>
2021-09-07 11:49:41 +08:00
zhuyanlin
a2d6632e7c uClibcxx: remove function that conflict with libsupc++
The New_/del_ function already contain in libsupc++.
2021-09-07 10:33:11 +08:00
Jiuzhu Dong
4457c3d8cd littlefs/stat: return OK when stat success
Change-Id: I2f2a57af39d477097ad6909a57b252b141063c49
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-06 20:25:14 +08:00
zhuyanlin
46e75346f9 arch:xtensa: add xtensa mpu support
Add support for Xtensa Memory Protect Unit.

Change-Id: I27e2f05daae24429ef7513d843b4f217daeefa0d
2021-09-06 16:40:13 +08:00
zhouliang3
601467a05b fs/littlefs: Add attr to dir
N/A

Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
Change-Id: Ibe2bf53f4eb37e67bd982d6523a1b686a52b77ad
2021-09-06 16:11:26 +08:00
Xiang Xiao
c1cd83cf9e drivers/mmcsd: Fix the wrong format argument in mmcsd_dmpcsd
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-06 11:59:55 +08:00
Xiang Xiao
703c4b9b8c drivers/mmcsd: Handle the failure correctly in mmcsd_slotinitialize
1.Return -ENOMEM directly if kmm_malloc return NULL
2.Call nxsem_destroy if the initialization can't succeed

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-06 11:59:47 +08:00
Xiang Xiao
ad864dcf8e drivers/mmcsd: Change up_udelay to nxsig_usleep if delay >= 1ms
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-06 11:58:42 +08:00
Xiang Xiao
8df6a1de6a drivers/mmcsd: Change mmsd_ prefix to mmcsd_ prefix
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-06 11:58:22 +08:00
Xiang Xiao
0d8d90f5aa arch: Replace ar and nm with gcc-ar and gcc-nm
to make enable LTO easily

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-09-03 10:22:51 +08:00
chao.an
3478386698 tools/checkstack.pl: handle the <stmdb> instruct properly
Change-Id: Id34b04134c7bd164598da52c682fd0b7711415f2
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-03 00:05:22 +08:00
chao.an
1d52c08bdd sys/socket/scm: add more socket message control helper
Change-Id: I051e82f1722d092b62f1ff52a6492a91191cfe25
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-09-02 22:46:41 +08:00
Jiuzhu Dong
93d0da801a rptun: add CONFIG_RPTUN_LOADER to optimize code size
Change-Id: I8a8d85eba5058d455d4ca8a8627169cf29060a4d
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-09-02 18:28:19 +08:00
Xiang Xiao
6822075cc8 tools/checkstack.pl: Add riscv arch support
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I8a7b51e1b75aee4bab42e85b1266e94c578c60f1
2021-09-02 14:45:10 +08:00
Xiang Xiao
64144bbc4e tools/checkstack.pl: Correct the usage comment
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I08221d9175647d9081338e9b031e10e3500b8e32
2021-09-02 14:26:42 +08:00
Xiang Xiao
02b3c5ad70 tools/checkstack.pl: Support thumb2 function prologue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie4fc9e39f4ef3490013425d2c8444a53d4ab6568
2021-09-02 14:26:42 +08:00
zhouliang3
a8b0bced5a fs/littlefs: Fix the bug of missing file types
N/A

Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
Change-Id: If6eee288558d5325c1ee15d63f6ad35bcdb5ffa7
2021-09-02 11:35:40 +08:00
Xiang Xiao
90c839abbb libxx: Move the partial c++ abi implementation to libcxxmini sub folder
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I2bc9b8be2962451a44352ab90623c9481bd162b2
2021-09-01 18:03:06 +08:00
zhuyanlin
cf2d061be3 libxx: use libxxabi, uClibxx in local code
N/A

Change-Id: I8322f89eb3afb2e404eb2d0164f578785870a3d3
2021-09-01 11:30:28 +08:00
zhouliang3
fe3b842628 fs/littlefs: Implement fchstat and chstat of littlefs
N/A

Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
Change-Id: I200184e7156a14902ffa13962d898bdda50291bb
2021-08-31 20:44:59 +08:00
futerigele
e3b87ea0aa feat: touch: add io command for touch firmware version
CHAMPION-53

add io command for touch firmware version

Change-Id: I777285d2343b32ffd9caef2fc746fe491c5890d7
Signed-off-by: futerigele <futerigele@xiaomi.com>
2021-08-31 20:18:35 +08:00
Jiuzhu Dong
40380c117c fs/ioctl: using FIOC_FILEPATH instead of FIOC_FILENAME.
Change-Id: Ib285455a251bd3c475e8ff402936070da209eb67
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-31 19:17:20 +08:00
Xu Xingliang
e42c3ea8a8 libc/gettext: Initialize path field when creating mofile struct.
Signed-off-by: Xu Xingliang <xuxingliang@xiaomi.com>
Change-Id: Ic88876b254e29ac6156f8b2b15c5321af62f4e24
2021-08-31 18:18:02 +08:00
Jiuzhu Dong
5e8b1fba63 binfmt: remove file_ioctl and get filename by strrchr
Change-Id: I8049f7d395ae9fcdfba7d1d887d818e8deeac36b
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-31 16:04:40 +08:00
Jiuzhu Dong
73617a3812 exfatfs_dup: alloc new handle for dup fd
VELAPLATFO-193

Change-Id: I4888b681a79fbcfbb06df19bed43180283b37a35
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-31 15:44:29 +08:00
Jiuzhu Dong
c7bf3567c2 exfatfs: getpath by ioctl using cmd:FIOC_GETPATH
N/A

Change-Id: Ic02045c0b27c99226c4ae58c30fe6fd7ee46e82a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-31 15:44:29 +08:00
Jiuzhu Dong
85e5bff276 exfatfs_seek: return current location plus offset bytes when whence is SEEK_CUR
VELAPLATFO-195 VELAPLATFO-194

Change-Id: Ic81d3169f948e70ed5f87fca1b78ce5905f59c98
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-31 15:44:29 +08:00
zhuyanlin
af3d84cb19 libc:machine: add atomic_load/store/exchange API
Add atomic_load/store/exchange API

Change-Id: I6196b077d1e76cd1e0506ee66e2885e541525eb1
2021-08-31 14:16:34 +08:00
Xiang Xiao
a901ab35ad libxx: Remove the unused libxx_stdthrow.cxx
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-31 11:39:21 +08:00
Xiang Xiao
19e5ba9ef4 libxx: Move libcxxabi special setting from libcxx.defs to libcxxabi.defs
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-31 11:39:12 +08:00
Xiang Xiao
7768b66bf4 libxx: Give VERSION make variable prefix to avoid the conflict
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Icca26524e3154300ed863650db24f88a9a8e295a
2021-08-31 11:39:01 +08:00
Abdelatif Guettouche
eb621457d0 libs/libxx/uClibc++.defs: Download the correct file type.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-08-31 11:37:30 +08:00
Jiuzhu Dong
4743c089d0 libc/rexec: support remote execution
Change-Id: I0f61326081f87d9bdf7234088f352328b8828adb
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-08-31 10:19:09 +08:00
zhouliang3
a4d8e35665 fs/littlefs: Add to get the full path
N/A

Signed-off-by: zhouliang3 <zhouliang3@xiaomi.com>
Change-Id: Ie7e51e0d57ae3c1cc3b165702025a2b58e534a34
2021-08-31 09:49:28 +08:00
chao.an
3a0885bafc net/udp: fix buffer release handling on failed buffer alloc
Attempt to release write buffer on failed UDP write I/O buffer
alloc and tryalloc failed to wrb->wb_iob assertion.

Change-Id: Ic77c148c55ded7871d179e321c57bba5ca8e4112
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-08-30 21:50:57 +08:00
Xiang Xiao
4af9246ce1 openamp: Move the download to context target
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-08-30 02:09:43 +08:00