Xiang Xiao
9d17731a81
arch/arm: Fix syscall number out of swi range in thumb mode
...
The immediate number is 8bits in thumb mode:
+---------------------+---------------+
|15 14 13 12 11 10 9 8|7 6 5 4 3 2 1 0|
+---------------------+---------------+
| 1 1 0 1 1 1 1 1| imm8 |
+---------------------+---------------+
The immediate number is 24bits in arm mode:
+-----------+-------------------------------------------------------------------------+
|31 30 29 28|27 26 25 24|23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0|
+-----------+-----------+-------------------------------------------------------------+
| cond | 1 1 1 1| imm24 |
+-----------+-----------+-------------------------------------------------------------+
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I62503cdc377fcee81864e88e981d389bce2e1b45
2021-03-18 18:03:01 +08:00
Jiuzhu Dong
7a6a1c1f42
fs: allocate file/socket dynamically
...
MIRTOS-273
Change-Id: I8aea63eaf0275f47f21fc8d5482b51ffecd5c906
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-03-17 21:15:26 +08:00
Peter Bee
a2a31c735e
net/socket: move si_send/recv into sendmsg/recvmsg
...
MIRTOS-272
Implement si_send/sendto/recvfrom with si_sendmsg/recvmsg, instead of
the other way round.
Change-Id: I7b858556996e0862df22807a6edf6d7cfe6518fc
Signed-off-by: Peter Bee <bijunda1@xiaomi.com>
2021-03-02 17:33:01 +08:00
chao.an
9c946e2af6
make/archive: replace the dependency to preprequisite list
...
Change-Id: Id63f3cd32906461a54cb016ef8078d4d922845e2
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-03-01 21:10:15 +08:00
guowei15
e2dce4e2ec
arm/setjmp.h:add c++ support
...
N/A
Change-Id: I619cc15570adeff10f3a9b69bf9a3cff83e625c1
Signed-off-by: guowei15 <guowei15@xiaomi.com>
2021-02-24 16:41:57 +08:00
guowei15
dee30cae27
arm/setjmp.h:fix return_function undefined
...
N/A
Change-Id: Ic72fd8053b88cf349922154696fd8c3163cd850a
Signed-off-by: guowei15 <guowei15@xiaomi.com>
2021-02-24 10:11:19 +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
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
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
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
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
Nathan Hartman
af0dcd4a0c
stm32/stm32_capture.c: Fix nxstyle errors
...
arch/arm/src/stm32/stm32_capture.c:
* Fix nxstyle errors.
2020-11-22 10:29:40 -08:00
Matias N
d5b6ec450f
Parallelize depend file generation
2020-11-22 09:02:59 -03:00
Brennan Ashton
2df6547d50
board: Add network configuration to nucleo-h743zi
...
Signed-off-by: Brennan Ashton <bashton@brennanashton.com>
2020-11-22 01:47:13 -08:00
Brennan Ashton
87d8e5dda2
board: nucleo-h743zi USB Host fixups
2020-11-22 00:28:49 -08:00
KernelGuruMeditation
1a53a2f882
Fix code style
2020-11-22 00:28:49 -08:00
KernelGuruMeditation
c9e40ede2d
Fix of the OTG FS HOST for nucleo-h743zi
2020-11-22 00:28:49 -08:00
Brennan Ashton
a0112eee4f
stm32h7: Bug where more than CONFIG_MM_REGIONS would be allocated
2020-11-21 19:38:05 -08:00
Matias N
10d7d8e9c3
nrf52 GPIO: fix setting of SENSE to pins; clear LATCH register on initialization
2020-11-21 18:18:25 -08:00
Masayuki Ishikawa
983117210c
arch: lc823450: Fix compile errors in lc823450_usbdev.c with CONFIG_USBDEV_DMA=y
...
Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2020-11-21 11:34:23 -03:00
YAMAMOTO Takashi
bea32be658
arch/arm/src/stm32f0l0g0/stm32_tim_lowerhalf.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
6326899610
arch/arm/src/stm32f0l0g0/stm32_tim.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
d044cf9c5c
arch/arm/src/stm32f0l0g0/stm32_pwm.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
ccd6987c90
arch/arm/src/stm32f0l0g0/stm32_i2c.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
6955404a3d
arch/arm/src/armv6-m/arm_svcall.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
648e0610c5
arch/arm/src/stm32h7/stm32_pwm.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
c2b06fe219
arch/arm/src/stm32h7/stm32_i2c.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
9d293a88f9
arch/arm/src/stm32h7/stm32_allocateheap.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
a09c038c14
arch/arm/src/stm32/stm32_i2c_alt.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
2a045fa2a3
arch/arm/src/stm32/stm32_sdio.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
bf29eaabb6
arch/arm/src/common/arm_vfork.c: Fix syslog formats
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
4cf3b2d1aa
arch/arm/src/armv7-m/arm_svcall.c: Fix a syslog format
2020-11-20 22:22:53 -08:00
YAMAMOTO Takashi
a1c7ea1dae
arch/arm/src/stm32/stm32_otgfsdev.c: Fix syslog formats
2020-11-20 22:22:53 -08:00