cuiziwei
04f3ff5942
nuttx/note:fix runtime error.
...
note/note_driver.c:1405:11: runtime error: null pointer passed as argument 2, which is declared to never be null
#0 0x33bf5cc in sched_note_event_ip note/note_driver.c:1405
#1 0x33bfb57 in note_driver_instrument_enter note/note_initialize.c:55
#2 0x347b084 in __cyg_profile_func_enter misc/lib_instrument.c:68
#3 0x34179de in binder_initialize binder/binder.c:669
#4 0x339a936 in drivers_initialize /home/cuiziwei/vela/happy/nuttx/drivers/drivers_initialize.c:242
#5 0x335a179 in nx_start init/nx_start.c:632
#6 0x32f755c in main sim/sim_head.c:180
#7 0xf6821518 (/lib/i386-linux-gnu/libc.so.6+0x21518) (BuildId: 7f64b917aaa97b9680d8e44931bf7611c5a1f036)
#8 0xf68215f2 in __libc_start_main (/lib/i386-linux-gnu/libc.so.6+0x215f2) (BuildId: 7f64b917aaa97b9680d8e44931bf7611c5a1f036)
#9 0x32b401a in _start (/home/cuiziwei/vela/happy/nuttx/nuttx+0x32b401a) (BuildId: 33f8f7b361d44a008de87fea1bc970b22b48b700)
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-13 14:05:50 +08:00
zhangwenjian
d469216653
note:fix syscall note compile error
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-13 14:05:50 +08:00
zhangwenjian
149b1f186e
drivers/note:add the api of sched_note_add
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-13 14:05:50 +08:00
zhangwenjian
7aa1871664
note:support filter for each note channel
...
Signed-off-by: zhangwenjian <zhangwenjian@xiaomi.com>
2024-10-13 14:05:50 +08:00
yinshengkai
c018be66bd
note: merge nc_systime_nsec and sec
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-13 14:05:50 +08:00
zhaoxingyu1
0be1196046
note_driver: time_t outputs in 64-bit format
...
Signed-off-by: zhaoxingyu1 <zhaoxingyu1@xiaomi.com>
2024-10-13 14:05:50 +08:00
cuiziwei
19851c0979
note: Move the instrument register to note_initialize
...
avoid the instrument doesn't get registered in some case
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-13 14:05:50 +08:00
cuiziwei
7246533aeb
Unify the definition of GCCVER and remove duplicate code.
...
Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
2024-10-13 11:41:22 +08:00
yintao
d2fc3f21de
net/rpmsg: use hash to handle rp_name
...
expand the user's rpname size
hash when exceed RPMSG_SOCKET_NAME_LEN due to the limitation of eptname
Signed-off-by: yintao <yintao@xiaomi.com>
2024-10-13 11:33:04 +08:00
Xiang Xiao
cb2a6a3480
net/rpmsg: Minor cleanups
...
1.Simplify the message process in rpmsg_socket_send_single
2.Add more lock protection in rpmsg socket
3.Fix the style issue
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 11:33:04 +08:00
Xiang Xiao
3a32531a05
net/rpmsg: Remove all the special handle of "backlog == -1"
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 11:33:04 +08:00
Xiang Xiao
034215ab9c
net/rpmsg: sendsize should be protected by sendlock not recvlock
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 11:33:04 +08:00
yintao
5b372a4706
rpmsg_sockif: add rpmsg_socket_ept_release for free conn
...
Signed-off-by: yintao <yintao@xiaomi.com>
2024-10-13 11:33:04 +08:00
Xiang Xiao
8ea51b3efc
net/can: Save simple options to socket_conn_s
...
like other protocols(e.g. ip, tcp, udp)
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 11:24:31 +08:00
Marco Casaroli
83455a3fa1
ci: skip config
...
since this config requires bootloader, we skip it
2024-10-13 11:19:51 +08:00
Marco Casaroli
22800d6ea2
fix(esp32-devkit): rename defconfig to use _
2024-10-13 11:19:51 +08:00
Marco Casaroli
757c312ea3
doc(esp32-qemu): update chip revision and bootloader
2024-10-13 11:19:51 +08:00
Marco Casaroli
027e5ab763
fix(esp32-qemu): enable legacy esp-idf build
...
The current simple boot method is not working with qemu.
We enable this option for now until we can make the simple-boot
image boot with QEMU.
2024-10-13 11:19:51 +08:00
Marco Casaroli
b1a6618929
doc(esp32s3): qemu and openeth
2024-10-13 11:19:51 +08:00
Marco Casaroli
4741f6f561
feat(esp32s3-devkit): add qemu defconfig
2024-10-13 11:19:51 +08:00
Marco Casaroli
d2d653aebf
feat(esp32s3-devkit): initialize opencores eth mac
2024-10-13 11:19:51 +08:00
Marco Casaroli
c17ab3beb5
feat(esp32s3): add openeth ethernet driver for qemu
...
We add the config for esp32s3, then move the esp32 specifics to
esp32/chip.h, then add the esp32s3 specifics to esp32s3/chip.h.
2024-10-13 11:19:51 +08:00
Marco Casaroli
890bdcd3d3
feat(esp32s3-devkit): add qemu image option
2024-10-13 11:19:51 +08:00
Marco Casaroli
d5b32f0335
feat(esp32_openeth): move to common/espressif
...
Since this will be used for esp32s3 also, we can have this in
common/espressif.
2024-10-13 11:19:51 +08:00
xuxin19
57bfd02cef
build ci:add msvc windows native ci workflow
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 10:25:19 +08:00
YanXiaowei
356ddee5b8
support trace_beginex and trace_endex
...
Signed-off-by: YanXiaowei <yanxiaowei@xiaomi.com>
2024-10-13 10:23:44 +08:00
hujun5
fa8ccc0e85
sched: fix nxsched_suspend_scheduler regression
...
This commit fixes the regression from https://github.com/apache/nuttx/pull/13877
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-13 10:16:22 +08:00
zhanghu5
f8f6bfff29
use r1-r3 as tmp register
...
Signed-off-by: zhanghu5 <zhanghu5@xiaomi.com>
2024-10-13 10:12:27 +08:00
chao an
c37b0de28c
libc/atomic: decoupling atomic and spinlock to avoid recursion
...
1. use irq save in AMP mode
2. use critical section in SMP mode
Signed-off-by: chao an <anchao@lixiang.com>
2024-10-13 10:00:22 +08:00
chenrun1
9e81f5efac
Revert "sched/spinlock: remove nesting spinlock support"
...
This reverts commit 5aa13bc490
.
2024-10-13 09:41:59 +08:00
chenzhijia
505adfa277
nuttx:move "#define STRINGIFY(x)" to nuttx/macro.h
...
Franklin requirement, "#define STRINGIFY(x)" conflicts with https://github.com/mborgerding/kissfft define
Signed-off-by: chenzhijia <chenzhijia@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-13 03:16:25 +08:00
Xiang Xiao
08829bd388
mtd/nvs: Trigger recovery process in nvs_startup
...
when mtd driver return -EBADMSG
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 03:10:19 +08:00
yinshengkai
38e474b0c5
libc: add CRC-8-ROHC support
...
Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
2024-10-13 03:09:26 +08:00
yangshuyong
c1eee1cc29
Changed the i3c_priv_xfer's member to flags from rnw
...
Signed-off-by: yangshuyong <yangshuyong@xiaomi.com>
Signed-off-by: lipengfei28 <lipengfei28@xiaomi.com>
2024-10-13 02:49:05 +08:00
Xiang Xiao
7b2dbcf50a
drivers/optee: Return error if optee_recv return prematurely
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 02:48:29 +08:00
Xiang Xiao
a074a572af
sched/pthread: Remove unused pthread_sem_xxx functions
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 02:47:44 +08:00
liwenxiang1
015a45517e
mempool: add the minimum size configuration of mempool
...
The minimum size of mempool can be configured through CONFIG_MM_MPOOL_MINISIZE
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-13 02:46:57 +08:00
Bowen Wang
821196eb22
lib_uuid_create: try use hardware random number generators first
...
Try the hardware random number generators is better for uuid generator
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:44:25 +08:00
liwenxiang1
8d09eaaee0
libs/libc:Openlibm adds exp10 and exp10f function implementations
...
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-13 02:31:44 +08:00
liwenxiang1
1c65fbf15a
libc/newlib:Declaration of adding depth
...
Resolve the issue of inability to compile when opening newlib
Signed-off-by: liwenxiang1 <liwenxiang1@xiaomi.com>
2024-10-13 02:30:51 +08:00
Bowen Wang
101b147a24
lib_memoryregion: fix the comments about the memory flags
...
Follow the elf format, correct the memory region flag description:
Executable 0x1, Writable 0x2, Readable 0x4
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:28:55 +08:00
Bowen Wang
143466baed
drivers/pci: fix pci framework warning in 32bit chip
...
In file included from pci/pci.c:30:
pci/pci.c: In function 'pci_setup_device':
pci/pci.c:449:66: warning: right shift count >= width of type [-Wshift-count-overflow]
449 | pci_write_config_dword(dev, base_address_1, res->start >> 32);
| ^~
pci/pci.c: In function 'pci_presetup_bridge':
pci/pci.c:541:51: warning: right shift count >= width of type [-Wshift-count-overflow]
541 | ctrl->mem_pref.start >> 32);
| ^~
pci/pci.c: In function 'pci_postsetup_bridge':
pci/pci.c:604:57: warning: right shift count >= width of type [-Wshift-count-overflow]
604 | (ctrl->mem_pref.start - 1) >> 32);
| ^~
CC: pthread/pthread_release.c pci/pci_ecam.c:71:12: warning: initialization of 'int (*)(struct pci_bus_s *, unsigned int, int, int, uint32_t *)' {aka 'int (*)(struct pci_bus_s *, unsigned int, int, int, long unsigned int *)'} from incompatible pointer type 'int (*)(struct pci_bus_s *, uint32_t, int, int, uint32_t *)' {aka 'int (*)(struct pci_bus_s *, long unsigned int, int, int, long unsigned int *)'} [-Wincompatible-pointer-types]
71 | .read = pci_ecam_read_config,
| ^~~~~~~~~~~~~~~~~~~~
pci/pci_ecam.c:71:12: note: (near initialization for 'g_pci_ecam_ops.read')
pci/pci_ecam.c:72:12: warning: initialization of 'int (*)(struct pci_bus_s *, unsigned int, int, int, uint32_t)' {aka 'int (*)(struct pci_bus_s *, unsigned int, int, int, long unsigned int)'} from incompatible pointer type 'int (*)(struct pci_bus_s *, uint32_t, int, int, uint32_t)' {aka 'int (*)(struct pci_bus_s *, long unsigned int, int, int, long unsigned int)'} [-Wincompatible-pointer-types]
72 | .write = pci_ecam_write_config,
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:28:32 +08:00
hujun5
444a9fbcd6
pthread: We should not directly include arch/spinlock.h as it may cause compilation errors in C++.
...
Instead, we should use nuttx/spinlock.h.
Signed-off-by: hujun5 <hujun5@xiaomi.com>
2024-10-13 02:27:58 +08:00
Bowen Wang
bc97e73aee
include/.gitignore: add openlibm to gitignore
...
avoid git add incorrect files
Signed-off-by: Bowen Wang <wangbowen6@xiaomi.com>
2024-10-13 02:27:28 +08:00
yintao
e435fca0e2
fs_file.c: modify files_countlist comments
...
Signed-off-by: yintao <yintao@xiaomi.com>
2024-10-13 02:27:02 +08:00
wangmingrong1
c9db6e8173
CI: CI Docker adds Python package installation
...
1. Add Python tool 'install CI' to MSYS2 platform
2. CI Python Add Package Construction
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
2024-10-13 02:25:29 +08:00
xuxin19
7def0983f6
cmake:sync arm sub arch CMake scripts missing sources
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:25:06 +08:00
xuxin19
4667163152
cmake:add driver thermal CMake scripts
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:25:06 +08:00
xuxin19
351781d601
cmake:refine nuttx cmake build system fix CMake build missing part
...
Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
2024-10-13 02:25:06 +08:00
Xiang Xiao
a5aea61537
driver: Post sempahore only when it's value is smaller than one
...
to avoid waking up the waiting thread redundantly.
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2024-10-13 02:12:01 +08:00