Zhihong Chen
8e85e52708
drivers: usbhost: fix usbhost_hidkbd some errors
...
- usbhost_send_request(): data should using DRVR_ALLOC buffer
- fix usbhost_cralloc() assert variable
Signed-off-by: Zhihong Chen <zhihong.chen@hpmicro.com>
2023-07-27 00:51:59 -07:00
SPRESENSE
b515f9a360
arch: cxd56xx: Fix compile error
...
Add inttypes.h to fix a compile error in cxd56_emmc.c.
2023-07-26 22:14:31 -07:00
hujun5
ad6b12acf5
arm/trustzone: update defconfig
...
we should add CONFIG_ARCH_TRUSTZONE_NONSECURE=y to ap's defconfig
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 18:53:28 -07:00
Ville Juven
6bafdd45fd
riscv/mpfs: Set hart2 default entrypoint to -1 like the others
...
No reason to have a different entrypoint
2023-07-26 19:58:05 -03:00
hujun5
4109908013
binfmt: remove sched_[un]lock
...
In the current usage mode, multiple tasks will not modify g_binfmts simultaneously
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2023-07-26 09:43:51 -07:00
yuexinyi
baefa5fa6b
Revert "drivers/video: Don't need update vbuf_tail in dequeue_vbuf_unsafe"
...
This reverts commit e15bccaa71
.
Signed-off-by: yuexinyi <yuexinyi@xiaomi.com>
2023-07-26 07:45:30 -07:00
anjiahao
2645e59901
sim/tcbinfo:add ebp to tcbinfo
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-26 06:57:25 -07:00
guoshichao
02153a2afb
pthread_atfork: fix the incorrect description in comments
...
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-07-26 04:51:13 -07:00
raiden00pl
ef252fc0fc
arch/nrf91/modem: fix returned source address
2023-07-26 04:51:05 -07:00
wangyingdong
5ac8c71663
net/ipfrag:Fixed ref not initializing warning issue
...
CC: libssh/src/auth.c
1ipfrag/ipv4_frag.c: In function 'ipv4_fragout':
ipfrag/ipv4_frag.c:224:7: error: 'ref' may be used uninitialized in this function [-Werror-maybe-uninitialized]
224 | lmemcpy(ipv4, ref, iphdrlen);
ipfrag/ipv4_frag.c:364:26: note: 'ref' was declared here
364 | FAR struct ipv4_hdr_s *ref;
CC: tls/task initinfo c
Signed-off-by: wangyingdong <wangyingdong@xiaomi.com>
2023-07-26 08:36:04 -03:00
raiden00pl
5769952471
cmake: add support for compile definitions for apps
...
With this we can pass build options to compiled app which is useful for integrating external projects
2023-07-26 02:52:58 -07:00
guoshichao
9d7f349664
libs/pthread/pthread_atfork: fulfill implement pthread_atfork function
...
1. add the pthread_atfork implementation
2. the pthread_atfork implementation are referred to https://pubs.opengroup.org/onlinepubs/9699919799/functions/pthread_atfork.html
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-07-26 10:41:52 +02:00
guoshichao
3524f4b9ce
libs/libc/fork: add lib_fork implementation
...
1. add lib_fork api in libs/libc, we need a fork() api to implement the
fork relative method, such as pthread_atfork
2. rename the assembly fork entry function name to up_fork(), and rename
the up_fork() to arch specific name, such as
sim_fork()/arm_fork()/mips_fork() etc.
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-07-26 10:41:52 +02:00
Xiang Xiao
46b25b3849
arch: Compute the array size by nitems
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-26 09:33:38 +02:00
Xiang Xiao
7ca4c916eb
arch/sparc: Add g_tcb_info
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-26 09:33:38 +02:00
Xiang Xiao
94f273130e
arch/x86_64: Add g_tcb_info
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-26 09:33:38 +02:00
Xiang Xiao
8d46cfd8e5
arch/x86: Add g_tcb_info
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-26 09:33:38 +02:00
Xiang Xiao
f3269a6caa
sched: Rename DEBUG_TCBINFO to ARCH_HAVE_TCBINFO
...
and select if the arch support to define g_tcbinfo variable
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-26 09:33:38 +02:00
dependabot[bot]
f295ac6fb3
build(deps): bump certifi from 2023.5.7 to 2023.7.22 in /Documentation
...
Bumps [certifi](https://github.com/certifi/python-certifi ) from 2023.5.7 to 2023.7.22.
- [Commits](https://github.com/certifi/python-certifi/compare/2023.05.07...2023.07.22 )
---
updated-dependencies:
- dependency-name: certifi
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-07-25 18:06:14 -07:00
anjiahao
d5347d8915
arm64:fix ostest failed to run
...
The reason for the failure is incorrect sp,
resulting in the failure to restore the register
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-25 16:37:49 -03:00
Tiago Medicci Serrano
dacb4e87b6
espressif: get esp-hal-3rdparty sources based on its version
...
Clone the esp-hal-3rdparty repository and, then, checkout to a
specific version (usually indicated by the commit SHA) instead of
using a branch as the HEAD.
2023-07-25 09:44:59 -07:00
Tiago Medicci Serrano
a5c92582a4
Rename CamelCase symbols to lowercase
2023-07-25 08:51:17 -07:00
Alan Carvalho de Assis
35ec548033
Remove empty lines with spaces found in the source code
2023-07-25 08:51:17 -07:00
Neale Ferguson
ed4f651bbd
Fix modlib to get binary loading working again
...
This patch fixes the issue reported here:
https://github.com/apache/nuttx/issues/9845
2023-07-25 08:51:17 -07:00
raiden00pl
60200b6c9b
arch/nrf91: make all interrupts non-secure only if CONFIG_NRF91_SPU_NONSECURE=y
...
this fixes configurations that works only in secure environment (for testing and dev purposes)
2023-07-25 08:49:24 -07:00
raiden00pl
5c74a50963
add EPL licence option
2023-07-25 17:30:45 +02:00
raiden00pl
e48d730273
cmake: enable more cmake builds
2023-07-25 06:18:22 -07:00
Zhe Weng
9dc5a59d50
libc/netdb: Move dns query info and buffer out of the stack
...
The length of these buffers come from Kconfig, it isn't safe to allocate
them on the stack.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-07-25 06:17:48 -07:00
raiden00pl
4aa54e8405
cmake: port more stm32 boards and format already ported stm32 boards
2023-07-25 06:08:54 -07:00
raiden00pl
e64335f24c
cmake: format Nordic boards
2023-07-25 06:08:54 -07:00
chao an
06af0d47aa
tools/ci: add rpproxy/rpserver into cmake build
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-25 15:00:10 +02:00
chao an
49dec5b48c
cmake/build: fix build break on cmake
...
Signed-off-by: chao an <anchao@xiaomi.com>
2023-07-25 15:00:10 +02:00
Xiang Xiao
e28f6d6e6e
hwspinlock: Fix typo error(spin_lock_restore to spin_unlock_irqrestore)
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-25 13:03:31 +02:00
Xiang Xiao
13dfe41f6c
Fix include/nuttx/hwspinlock/hwspinlock.h:117:3: error: too few arguments to function 'hwspin_unlock'
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-25 09:11:24 +03:00
Xiang Xiao
b4e7251415
boards/esp32-devkitc: Refresh wifi_smp_rmt config
...
Fix the regression by https://github.com/apache/nuttx/pull/6992
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2023-07-24 21:01:14 -03:00
guoshichao
714926e6ea
libs/libc/strftime: add modifier character support to strftime
...
1. make the ltp/open_posix_testsuite/strftime 2-1.c case
2. the modification are referred to https://pubs.opengroup.org/onlinepubs/9699919799/functions/strftime.html
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-07-24 10:34:23 -07:00
raiden00pl
dffb472ad9
cmake: port stm32f0l0g0
2023-07-24 10:13:26 -07:00
raiden00pl
44b5eb3751
cmake: update docker cmake to 3.26.0
2023-07-24 09:53:22 -07:00
zhangyuan21
9792211b96
sched/tcbinfo: add stack info to tcbinfo
...
Signed-off-by: zhangyuan21 <zhangyuan21@xiaomi.com>
2023-07-24 09:47:12 -07:00
Zhe Weng
9fd26195d1
net/setsockopt: Add IP_TTL support
...
We have IPV6_UNICAST_HOPS and IPV6_MULTICAST_HOPS in ipv6_setsockopt,
but only IP_MULTICAST_TTL in ipv4_setsockopt. So add IP_TTL support.
Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
2023-07-24 09:46:37 -07:00
wangchen
bde91a2abd
inet:fix libuvtest udp multicast error
...
Signed-off-by: wangchen <wangchen41@xiaomi.com>
2023-07-24 09:46:37 -07:00
anjiahao
4745ab64c3
Documentation:add gdb python script documentation
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-24 08:05:58 -03:00
guoshichao
0092b3e30f
sched/signal/sig_nanosleep: fix the clock_nanosleep posix case
...
1. make the clock_nanosleep can pass
ltp/open_posix_testsuite/clock_nanosleep 13-1, 10-1, 9-1 cases
2. the modification are referred to https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html
Signed-off-by: guoshichao <guoshichao@xiaomi.com>
2023-07-23 22:02:03 -07:00
anjiahao
8abf803a1d
arm64:Need to store native sp pointer to tcb
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-23 21:59:35 -07:00
anjiahao
ceb6bb6650
arm64:support arm64 for tcb info
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-23 21:59:35 -07:00
anjiahao
d63a36e0f3
toos/gdb/thread:Support thread command on nuttx
...
support arch:
sim x86
sim x86_64
arm32 all series
If we need to support more architectures in the future,
just add the 'g_tcbinfo' of the corresponding architecture
support thread command:
1. thread <id>
switch thread
2. info thread
list all thread info
3. thread apply [all | id list] command
like this:
thread apply all bt
thread apply all bt full
thread apply 1 2 4 bt
thread apply all info r
4. nxsetregs
Set registers to the specified values.
Usage: nxsetregs [regs]
Etc: nxsetregs
nxsetregs g_current_regs[0]
nxsetregs tcb->xcp.regs
Nxsetregs g_pidhash[0].tcb->xcp.regs
Default regs is g_current_regs[0],if regs is NULL,
it will not set registers.
Because NuttX enters exception_common during a crash,
this assembly function manipulates the stack pointer (sp),
causing GDB to be unable to trace back to the first context of the crash.
Instead, it shows the context of the interrupt stack. By using nxsetregs,
it is possible to forcefully set the first context to
the one before the interrupt occurred.
Notice:
Switching threads is achieved by setting registers,
so registers need to be restored before continue,
please use 'c' to continue instead of 'continue'
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-23 21:59:35 -07:00
anjiahao
eadfdab9a7
sim:add sim32 & sim64 tcbinfo
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-23 21:59:35 -07:00
anjiahao
9f644579b3
fix sim register & tcb info typo
...
Signed-off-by: anjiahao <anjiahao@xiaomi.com>
2023-07-23 21:59:35 -07:00
kcheshmedzhiev
ea87d008a0
Initial support for NUCLEO-U5A5ZJ-Q board
...
Fix for ci error
Typo changes
Fixed typo in boards/arm/stm32u5/nucleo-u5a5zj-q/src/stm32_bringup.c
Typo changes
Typo fixes
Typo fixes
Typo changes
Typo changes
Typo changes
2023-07-23 18:42:05 -07:00
Victor Benso
0c5145b7d1
New implementation of the ESP32's RMT driver.
2023-07-23 16:17:57 -03:00