ligd
00a9bc79d1
sim/up_uart.c: fix losting uart data when user paste long cmd
...
N/A
Change-Id: I66c01c0789fc83ae8f6db522d61ff8ab63cd9211
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-02-03 13:41:15 +08:00
ligd
0fe5ec8a48
sigdeliver: fix system block when kill signal to idle in SMP
...
Bug description:
CONFIG_SMP=y
Suppose we have 2 cores in SMP, here is the ps return:
PID GROUP CPU PRI POLICY TYPE NPX STATE STACK USED FILLED COMMAND
0 0 0 0 FIFO Kthread N-- Assigned 004076 000748 18.3% CPU0 IDLE
1 0 1 0 FIFO Kthread N-- Running 004096 000540 13.1% CPU1 IDLE
nsh> kill -4 0
or:
nsh> kill -4 1
system blocked.
Reason:
In func xx_sigdeliver() restore stage, when saved_irqcount == 0, that means
rtcb NOT in critical_section before switch to xx_sigdeliver(), then we need
reset the critical_section state before swith back.
Fix:
Add condition to cover saved_irqcount == 0.
Change-Id: I4af7f95e47f6d78a4094c3757d39b01ac9d533b3
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-01-21 16:56:44 +08:00
chao.an
832257677f
sim/hcitty: remove the poll lock to avoid invalid wait
...
It is unnecessary to protect pollnotify since the wakeup
source comes from idle thread
Change-Id: I99c06508029dc18aa8ded1cb672b14f77e9509a0
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-19 20:21:40 +08:00
chao.an
138397fe8a
sim/hcitty: SIM_HCITTY should depends on DRIVERS_BLUETOOTH
...
Change-Id: Icd36d54d8a8208f9df1c964800c0b2b2ea67a3e1
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-13 21:12:37 +08:00
chao.an
bacc7dbc7c
sim/hcitty: add send reassembly to support block write
...
Change-Id: I9a65e5dbe70b07aee0e22adce6b8cb698ff609eb
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-13 16:51:45 +08:00
Jiuzhu Dong
f0f09b913c
vfork: support sim vfork
...
MIRTOS-130
Change-Id: I15920bcbacfc5ea519cfe12c39cb64dfe6365838
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-01-11 16:10:53 +08:00
chao.an
d6faf5707d
sim/hcitty: add multi-instance support
...
Change-Id: I911054f52d38438b3622d7cd0c65180246117e87
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-10 19:34:53 +08:00
Xiang Xiao
730d7b9a8a
arch/sim: Simplify SYMBOL macro definition
...
Change-Id: I1772b65b9bbe29917885e432056f84921b562eb0
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
2021-01-10 00:14:06 -08:00
ligd
87694f68a7
mqueue: add file_mq_xx for kernel use
...
Change-Id: Ida12f5938388cca2f233a4cde90277a218033645
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-01-08 14:31:37 +08:00
chao.an
37b90df314
sim/hcitty: fix compile warning
...
Change-Id: I74f89e179daacaa01ba95cc211574c1bbadd2f9e
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-01-04 17:08:25 +08:00
chao.an
330253101c
sim/hcitty: add hcitty adapter
...
Change-Id: I5abacce7aced5f394f8b1efe83190840bed0b03e
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-30 19:53:35 +08:00
chao.an
b19dfdb69c
arch/sim/hci: reuse the reserved fields of hci buffer
...
Reuse the reserved fields of hci buffer to avoid redundant packet type splitting
Change-Id: I79d70ae939111bb909a6e0981c50e401734590f2
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-29 22:01:30 +08:00
Brennan Ashton
40392bd437
Bluetooth: Fix bt_buff lifecycle
...
Change-Id: I529aedae2507a9297c1d2d793451e4373c98092b
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-29 21:39:30 +08:00
chao.an
701da97575
sim/host/hcisocket: add avail/close interface
...
Change-Id: I3d96f62c4c3c7d703bfec74952953bee4aef9c7c
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-28 11:25:02 +08:00
dongjiuzhu
e1975139a3
rpmsg_uart: fix compile break when enable rptun
...
N/A
nuttx.rel: In function `rpmsg_serialinit':
nuttx/arch/sim/src/sim/up_rptun.c:257: undefined reference to `uart_rpmsg_init'
collect2: error: ld returned 1 exit status
Makefile:310: recipe for target 'nuttx' failed
Change-Id: I93a20941bc07f749165dc8f012da46ddb7b02b00
Signed-off-by: dongjiuzhu <dongjiuzhu1@xiaomi.com>
2020-12-25 11:27:31 +08:00
chao.an
ac988a8d5e
sim/names: add writev/readv into name list
...
Change-Id: Id0f6f24acd06dbd6a47c137caf4bfb5e3d097d31
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-24 18:03:57 +08:00
chao.an
70213704ec
arch/netdev: try tcp timer in every txavail call
...
In the current implementation, the first transmission of the new
connection handshake is depends entirely by tcp_timer(), which will
caused 0.5s - 1s delay each time in connect().
This patch is mainly to improve the performance of TCP handshake and wavehand.
Change-Id: Ic965a9fa26895f0d8e70368558f5bfbafdea7f58
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-12-15 21:41:29 +08:00
danguanghua
450b846cab
fix build break with CONFIG_AUDIO_MULTI_SESSION enabled
...
N/A
Change-Id: Idfa87031e09f26bd4ca57b5c220ce0ca849f80c4
Signed-off-by: danguanghua <danguanghua@xiaomi.com>
2020-12-09 10:37:11 +08:00
chao.an
90dc86655c
style/Makefile: remove unnecessary trailing whitespace
...
N/A
Signed-off-by: chao.an <anchao@xiaomi.com>
2020-11-30 11:20:05 +08:00
Nathan Hartman
4e460cd440
arch/stm32: Fix nxstyle errors
...
arch/arm/src/stm32/stm32_oneshot.c:
arch/arm/src/stm32/stm32_oneshot.h:
arch/arm/src/stm32/stm32_oneshot_lowerhalf.c:
arch/arm/src/stm32/stm32_dbgmcu.h:
* Fix nxstyle errors.
arch/arm/src/stm32/stm32_lsi.c:
* Fix nxstyle errors.
* Also a minor grammar fix in a comment: add "in" to "setting the
LSION bit in the RCC CSR register."
2020-11-24 18:12:47 -08:00
Masayuki Ishikawa
324d3a89ed
Revert "arch: cxd56xx: Fix the pause handler for SMP"
...
This reverts commit 55c00ad3d9 .
2020-11-25 00:02:37 +01:00
Masayuki Ishikawa
16436a7fb6
Revert "arch: armv7-a: Fix the pause handler for SMP"
...
This reverts commit 1978dcc9a9 .
2020-11-25 00:02:37 +01:00
Masayuki Ishikawa
3ba840aa27
Revert "arch: lc823450: Fix the pause handler for SMP"
...
This reverts commit 42dea9edf9 .
2020-11-25 00:02:37 +01:00
Masayuki Ishikawa
37dad5dd04
Revert "arch: k210: Fix the pause handler for SMP"
...
This reverts commit a500bd0238 .
2020-11-25 00:02:37 +01:00
Masayuki Ishikawa
b237748f50
Revert "arch: xtensa: Fix the pause handler for SMP"
...
This reverts commit 1914aac05f .
2020-11-25 00:02:37 +01:00
Nathan Hartman
4ce935f711
stm32/stm32_can.c: Fix nxstyle errors
...
arch/arm/src/stm32/stm32_can.c:
* Fix nxstyle errors.
2020-11-23 20:09:57 +01:00
Juha Niskanen
ed7380d863
arch/arm/src/stm32/stm32_serial.c: for flowcontrol use common idiom for enabling/disabling RX interrupts
...
stm32f7, stm32h7, stm32l4 and stm32f0l0g0 do it this way and there is no
reason for classic stm32 to differ. Also manipulation of priv->ie was not
atomic with respect to interrupts.
Signed-off-by: Juha Niskanen <juha.niskanen@haltian.com>
2020-11-23 10:59:19 -08:00
YAMAMOTO Takashi
ec8a46b2fa
arch/arm/src/stm32h7/stm32_ethernet.c: Fix syslog formats
2020-11-23 05:00:10 -08:00
YAMAMOTO Takashi
4d18ec194e
arch/arm/src/stm32/stm32_adc.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
4b7557e278
arch/arm/src/stm32/stm32_otgfshost.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
fbbc455c8d
arch/arm/src/stm32f7/stm32_adc.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c51499584d
arch/arm/src/stm32f7/stm32_adc.c: Appease nxstyle
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
bebd972ab0
arch/arm/src/stm32f7/stm32_otgdev.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c557e26d81
arch/arm/src/stm32f7/stm32_otgdev.c: Appease nxstyle
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
505d7a5728
arch/arm/src/stm32f7/stm32_sdmmc.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
5a4a960a79
arch/arm/src/stm32f7/stm32_spi.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
dc2f4d079c
arch/arm/src/stm32f7/stm32_i2c.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c261afd38c
arch/arm/src/stm32f7/stm32_i2c.c: Appease nxstyle
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
97729ddd29
arch/arm/src/stm32f7/stm32_dma.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
41db756d78
arch/arm/src/stm32h7/stm32_otghost.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
21a84e4558
arch/risc-v/src/rv64gc/riscv_sigdeliver.c: Fix a syslog format
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
9e04704cb6
arch/risc-v/src/k210/k210_schedulesigaction.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
982061a9e0
arch/risc-v/src/rv64gc/riscv_swint.c: Fix a syslog format
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
c934214bb3
arch/risc-v/src/rv32im/riscv_sigdeliver.c: Fix a syslog format
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
d8c5095fa7
arch/risc-v/src/fe310/fe310_schedulesigaction.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
263e4b991f
arch/risc-v/src/rv32im/riscv_swint.c: Fix a syslog format
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
764b2d6f04
arch/x86_64/src/intel64/up_regdump.c: Fix syslog formats
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
efbf6bc44c
arch/x86_64/src/intel64/intel64_tickless.c: Fix a syslog format
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
1bbdd3b415
arch/x86_64/src/intel64/intel64_handlers.c: Fix a syslog format
2020-11-22 19:01:05 -08:00
YAMAMOTO Takashi
a24f66f31f
arch/xtensa/src/esp32/esp32_spi.c: Fix a syslog format
2020-11-22 19:01:05 -08:00