chao.an
377093339e
boards/sim: add dynamic connection defconfig
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-17 13:34:49 +08:00
chao.an
a9d0dd7051
net/netlink: fix build warning if disable CONFIG_NETLINK_ROUTE
...
netlink/netlink_sockif.c: In function ‘netlink_sendmsg’:
netlink/netlink_sockif.c:676:10: warning: unused variable ‘len’ [-Wunused-variable]
676 | size_t len = msg->msg_iov->iov_len;
| ^~~
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-17 13:34:49 +08:00
chao.an
0d7f12c489
net/icmp: fix build break if enable NET_ALLOC_CONNS
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-17 13:34:49 +08:00
Huang Qi
676d35f007
risc-v: Make exception_common 8 byte align
...
Some SoC like bl602 require the exception entry 8 byte align, it should
be safe for other chips so we can apply it globally.
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-17 11:44:50 +08:00
Alexander Lunev
0f080cdeaf
net/tcp/sendfile: NET_TCP_WRITE_BUFFERS and NET_SENDFILE were inconsistent with each other:
...
tcp_sendfile() reads data directly from a file and does not use NET_TCP_WRITE_BUFFERS data flow
even if CONFIG_NET_TCP_WRITE_BUFFERS option is enabled.
Despite this, tcp_sendfile relied on NET_TCP_WRITE_BUFFERS specific flow control variables that
were idle during sendfile operation. Thus it was a total inconsistency.
E.g. because of the issue, TCP socket used by sendfile() operation never issued
FIN packet on close() command, and the TCP connection hung up.
As a result of the fix, simultaneously enabled CONFIG_NET_TCP_WRITE_BUFFERS and
CONFIG_NET_SENDFILE options can coexist.
2022-01-17 01:42:41 +08:00
Huang Qi
e97ba17451
arch/risc-v: Refine riscv_cpupause.c
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-16 23:11:32 +08:00
Petro Karashchenko
8d3bf05fd2
include: fix double include pre-processor guards
...
Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
2022-01-16 11:11:14 -03:00
Xiang Xiao
1adee3d657
rtc/rpmsg: Implement ioctl and destroy on server side
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
fd6a643460
rtc/rpmsg: Remove C99 specific statement
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
2b238d0772
rtc/rpmsg: Replace clock_[get|set]time with rtc_ops_s::[rd|set]time
...
to support the multiple rtc driver instance
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
3d3c4767a9
rtc/rpmsg: Replace session to client
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
41b9cf3cd8
rtc/rpmsg: Add sync parameter to control whether call clock_synchronize
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
6121f15d51
rtc/rpmsg: Move rtc_initialize out of rpmsg_rtc_initialize
...
like other rtc driver
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
Xiang Xiao
93b0b9678f
sim: Forward /dev/rtc0 operation to rpmsg rtc driver
...
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-16 11:58:13 +01:00
raiden00pl
2aede9168b
boards/nucleo-f446re: add SocketCAN example
2022-01-15 12:51:55 -03:00
raiden00pl
3b1de327cd
boards/nucleo-f302r8: add CAN and SocketCAN examples
2022-01-15 12:51:55 -03:00
Huang Qi
3200c936cc
arch/risc-v: Refine riscv_cpuindex.c
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-15 21:54:05 +08:00
Huang Qi
56a95ad0b5
risc-v: Remove ARCH_RV_ISA_[F|D] use ARCH_HAVE_FPU instead
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-15 11:42:01 +08:00
Huang Qi
5792d851e5
arch/risc-v/qemu-rv: Support both rv32/rv64 core
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-15 11:42:01 +08:00
Huang Qi
74cce59ac6
arch/risc-v: Make ISA configurable for qemu-rv32
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-15 11:42:01 +08:00
Alan C. Assis
dfd972a534
z80: Fix z80sim build system
2022-01-15 11:37:28 +08:00
chao.an
3544fc1fd6
risc-v/assert: add CURRENT_REGS check to avoid null pointer reference
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-15 02:20:01 +08:00
chao.an
c27839f98e
arm/xtensa: save the running registers to xcp context
...
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-15 02:20:01 +08:00
chao.an
47f9ec9c45
binfmt/coredump: remove the block fragmentation
...
Hide the segmentation details to backend implementation
Signed-off-by: chao.an <anchao@xiaomi.com>
2022-01-14 23:07:05 +08:00
Huang Qi
2e35b6d611
serial/uart_16550: Allow uintptr_t as addr width
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-14 19:40:30 +08:00
Alexander Lunev
019fc0ad78
sim/netdev: eliminated RX data stream congestion in case of high TX network traffic.
...
In case of high TX network traffic, netdriver_loop() that reads data from netdev
was invoked via up_idle() only after high TX network traffic had stopped.
That resulted in massive delay and drop of TCP ACK packets and
any other packets from netdev (tun/tap device).
2022-01-14 19:39:39 +08:00
Eero Nurkkala
09bf8a5f89
risc-v/mpfs: mpfs_opensbi: fix fw_size calculation
...
fw_start and fw_size were miscalculated. What was needed
was the pointed values of the offsets __mpfs_nuttx_start
and __mpfs_nuttx_end, not the values they had in place.
Also add the next_arg1 initialization.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2022-01-14 10:10:24 +01:00
Eero Nurkkala
c67a1a4de1
risc-v/mpfs: ld-envm-opensbi.script: add all opensbi code to .text.sbi
...
Add the rest of the OpenSBI code to .text.sbi -section. They belong
to there. This frees up some space in the very limited eNVM.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2022-01-14 10:10:24 +01:00
Eero Nurkkala
76c6ccc732
risc-v/mpfs: opensbi/defconfig fix RAM start address
...
RAM is expected to start from 0x08000000, not from
0x80000000 in this case. DDR starts from 0x80000000.
Signed-off-by: Eero Nurkkala <eero.nurkkala@offcode.fi>
2022-01-14 10:10:24 +01:00
Jukka Laitinen
122b907b91
arch/risc-v/src/mpfs/mpfs_opensbi_utils.S: Remove unncessary mv
...
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-14 10:10:24 +01:00
YAMAMOTO Takashi
39ab0f4836
Do not require write-access for fsync
...
* fsync doesn't modify the file. It doesn't make sense to require
write-access.
* This matches what ~all other systems do.
At least Linux, macOS, and NetBSD.
2022-01-14 09:01:08 +01:00
Jari van Ewijk
3aed0aa641
S32K1XX: implement uniqueid
2022-01-13 15:34:47 -08:00
Huang Qi
6f1011a85e
arch/risc-v: Rename bl602_entry.S to bl602_head.S
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-13 22:06:49 +01:00
Gustavo Henrique Nihei
c372e1e295
xtensa: Fix typo in xchal_cpX_store macros' invocation
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-01-13 21:07:04 +01:00
Fotis Panagiotopoulos
0c41611429
syslog: Fix in file channel initialization.
2022-01-13 19:16:10 +01:00
Juha Niskanen
62e1821ca0
crypto: apply BSD barrier only to SW AES library
...
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2022-01-13 16:27:52 +01:00
Huang Qi
7c93e96908
arch/risc-v: Fix typo in riscv_assert.c
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-13 14:53:18 +01:00
Huang Qi
3c15ae23cf
arch/risc-v: Make __tarp_vec 4 byte align
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-13 14:53:18 +01:00
Huang Qi
c6749fd6fd
arch/risc-v: Refine exception_common
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-13 14:53:18 +01:00
Jukka Laitinen
297c8dfc3a
drivers/mmcsd/sdio.c: Fix struct packing of sdio_resp_r5
...
The struct memeber should be packed as well
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-13 10:34:28 -03:00
Jukka Laitinen
8167dd6b06
fs/partition/fs_gpt.c: Fix compilation errors when CONFIG_FS_LARGEFILE is not defined
...
This fixes some number formatting errors for 64-bit targets
- GPT_HEADER_SIGNATURE is defined as "unsigned long long", so just print it as it is (without PRI macro)
- The size of blkcnt_t depends on CONFIG_FS_LARGEFILE and CONFIG_HAVE_LONG_LONG
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2022-01-13 17:46:29 +08:00
Alan C. Assis
7b32849b84
esp32s2: Fix data cache option in menuconfig
2022-01-12 21:45:04 +01:00
Gustavo Henrique Nihei
80436dd7be
xtensa/esp32s2: Fix some wrong definitions related to IRQ management
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-01-12 21:28:40 +01:00
Jari van Ewijk
0fc613f0b3
S32K1XX Reset Cause PROCFS: Add Kconfig option and cleanup
2022-01-13 01:29:42 +08:00
Huang Qi
e47a915f4c
arch/risc-v: Refine riscv_vectors.S
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-12 18:53:01 +08:00
Xiang Xiao
1b77ae88ef
fs/procfs: Remove the unnecessary strcmp
...
since the procfs already make the same check for us
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2022-01-12 07:19:40 +01:00
Huang Qi
10bb48b9b4
arch/risc-v: Merge rv32im and rv64gc into common
...
Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2022-01-11 23:24:33 +08:00
Gustavo Henrique Nihei
efca63e9e3
xtensa/esp32s2: Fix missing parenthesis on macro expression
...
Signed-off-by: Gustavo Henrique Nihei <gustavo.nihei@espressif.com>
2022-01-11 23:21:13 +08:00
ligd
3cfc6761ff
xtensa: fix lack of float register save & resotre
...
Signed-off-by: ligd <liguiding1@xiaomi.com>
2022-01-11 12:17:09 +01:00
buyuer
59c9620842
libcxx-mini: operator new will assert when alloc failed.
...
Signed-off-by: buyuer <dingddding@163.com>
2022-01-11 10:49:44 +01:00