Commit graph

41799 commits

Author SHA1 Message Date
Jiuzhu Dong
9b4b8cb0ee sched/init: don't check remain stack for idle task
N/A

Change-Id: I0bd5808efabd395157d2530f2423b18f0c1eeabd
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-11 21:51:15 +08:00
zhanghu
cfcef34ad6 nuttx net warning:add initialization of pointer *aiocbp in lio_listio
nuttx net warning:cancel the conflict between weak and inline in unwind_arch_adjustment

Change-Id: I0ac7571ca27191b69acdc31f5bc07943c4d87e58
2021-05-11 15:21:43 +08:00
Dong Heng
2af7861b31 riscv/esp32c3: Fix SPI Flash driver internal chip data address error
"g_rom_flashchip" is not in fixed address between all ESP32-C3's different versions.
2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
16dd2260f1 risc-v/esp32c3: Uniformize alignment for assembly instructions 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
6b5fe76506 risc-v/esp32c3: Improve interrupt handler documentation 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
f948f9fa8d risc-v/esp32c3: Reorder register restoration on interrupt handler epiloque 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
401a1bf751 risc-v/esp32c3: Fix wrong references to ESP32 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
a4b24762ea boards/esp32: Allocate .noinit in a dedicated section 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
2bb2d2bc0d boards/esp32c3-devkit: Allocate .noinit in a dedicated section
Previously it was being allocated into .bss section after the _ebss
address. Although functional, this is not intuitive.
2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
5a76c52ae2 arch/risc-v: Fix stack alignment according to calling convention
The RISC-V Integer Calling Convention states that the stack pointer
shall always be aligned to a 128-bit boundary upon procedure entry, both
for RV32* and RV64* ISAs (exception to the RV32E ISA, which must follow a
specific convention)
2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
e0e9f4db1c xtensa/esp32: Change ESP32_RT_TIMER_TASK_PRIORITY comment into help text 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
3782ca8dcc xtensa/esp32: Add missing default value for CONFIG_ESP32_GPIO_IRQ 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
91039bff97 xtensa/esp32: Uniformize Kconfig alignment and styling 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
e06fa3cc7e xtensa/esp32: Remove inconsistent usage of comment command 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
a35c140d0c xtensa/esp32: Remove redundant dependency 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
bfb8eec64a risc-v/esp32c3: Change ESP32C3_RT_TIMER_TASK_PRIORITY comment into help text 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
b85090684d risc-v/esp32c3: Uniformize Kconfig alignment and styling 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
672d879d34 risc-v/esp32c3: Remove inconsistent usage of comment command 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
0d32ff6a5c risc-v/esp32c3: Remove redundant dependency 2021-05-10 19:23:33 +08:00
Byron Ellacott
70ab250c5d Add experimental support for an eZ80 toolchain using llvm and GNU binutils.
An additional fix for the RTC driver to lock the RTC after setting values instead of unlocking it is included.
2021-05-10 19:23:33 +08:00
chenwen
98d97f27fd xtensa/esp32: Fix crash issue caused by null pointer operation 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
ade6997643 boards/esp32c3-devkit: Add SPI character device driver 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
124a34368c boards/esp32c3-devkit: Add board-specific SPI functions 2021-05-10 19:23:33 +08:00
Gustavo Henrique Nihei
0e0c7a9a47 risc-v/esp32c3: Add driver for General Purpose SPI Master 2021-05-10 19:23:33 +08:00
Huang Qi
9e5aa98495 arch/sim: Fix warning of duplicated object
N/A

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
Change-Id: I91cf182a396fc8f8024faf65c1cc7bf45cf34bbc
2021-05-08 22:11:52 +08:00
ligd
534d1bb3d2 sched: add CONFIG_SCHED_CRITMONITOR_XX for debugging system lantency
Change-Id: Id2a75db28caf1a89552e33391bd90f85cde08dbd
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-05-08 20:49:51 +08:00
ligd
74d29cf864 sched_critmon: add thread run time to critmonitor
Change-Id: Ib44e45f0f9a1b249b4067db324c9dbdf0cf3f288
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit 08aeeb5981aeb8787a9d259506185650638b9970)
2021-05-08 20:49:40 +08:00
Xiang Xiao
88ea42d3b1 libc/termios: Implement TCSADRAIN and TCSAFLUSH for tcsetattr
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: If87a4931cd5a55e064f58c19a22c7ce13f538000
2021-05-08 20:49:31 +08:00
Xiang Xiao
71c942ea51 libc/pty: Make ptsname[_r] support PSEUDOTERM_BSD config too
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I82a60ded48ea3437bd5f2b4fe328294d7077b040
2021-05-08 20:49:11 +08:00
Jiuzhu Dong
c5cd15a72e include/termios: left shift of 1 by 31 places cannot be represented in type 'int'
N/A

cu_main.c:172:22: runtime error: left shift of 1 by 31 places cannot be represented in type 'int'
by asan

Change-Id: I224345bddb11523db0c4a91c16617a3200fad034
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:45:42 +08:00
Jiuzhu Dong
94eecb1702 sim/rptun: support multi(>2) core interactive by share memory
N/A

Change-Id: Ia8254bfe369e40a04ed54adfa64afa38974b165c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:45:26 +08:00
Jiuzhu Dong
9a956df67b sim_addrenv: support add addrenv dynamically multiple times.
N/A

Change-Id: Ie34f6c59bc16fb147c7103978253dbe9403990d3
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:26:39 +08:00
Jiuzhu Dong
a1cddfe5c4 sim: move driver/arch initialize to sim_bringup
N/A

Change-Id: Ia41cc3978cc26294ca72be10cdedeb6efc8aea7a
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:26:10 +08:00
Jiuzhu Dong
788e409cb7 driver/syslog: add config SYSLOG_RPMSG_SERVER_NAME to
N/A

specified the name of remote proc(rpmsg server)

Change-Id: Ie270d651071e87a40a80ab489597ae18db9814f0
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:22:28 +08:00
Jiuzhu Dong
a099f22123 driver/rtc: add config CONFIG_RTC_RPMSG_SERVER to
N/A
select rtc rpmsg role.

Change-Id: I7f9053b070593573caa5d988c6a2e13593da6bc5
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:19:07 +08:00
Jiuzhu Dong
436180b6ad driver/rtc: add config RTC_RPMSG_SERVER_NAME to
N/A

specified the name of remote proc(rpmsg server)

Change-Id: I0086bb43727a2bbb5e68f88907b5e4608182ef9c
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-08 20:16:09 +08:00
liuhaitao
8ec76ce297 Config.mk: restore ARCHIVE to fix build break
Change-Id: Iafae4f4c48afb0df8b169ec1106e348cc4c0fc9e
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-07 22:22:01 +08:00
chao.an
b26784fc05 tools/mkdeps: generate the full path dependencies
Change-Id: I60ff42c40ea8071ac86e6e06aafeb2a9f4ec3698
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-07 21:39:35 +08:00
chao.an
af89b61959 binfmt/Makefile: remove the specified prefix from target variables
Change-Id: Ic79368950a543ab5c39e286e4b5d062529a83a3c
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-07 21:35:03 +08:00
chao.an
dcc2db8d40 make/archive: replace the dependency to preprequisite list
Change-Id: Id63f3cd32906461a54cb016ef8078d4d922845e2
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-07 21:34:45 +08:00
chao.an
48beda08e2 Revert "armv8-m: Fix EXC_RETURN for non-secure usage"
This reverts commit 2ecfddb430.

Change-Id: I9c01dc9b6eada54642787c8a3395cb32c8c4f7d4
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-07 20:54:03 +08:00
liuhaitao
dc639b2b59 Merge remote-tracking branch 'mirtos/master' into dev-upmerge-nuttx-10.1-0507
Change-Id: I4bb3a61356be2b4a77ccfe45390b15e68a376dd6
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-07 20:46:07 +08:00
liuhaitao
e3166ecac0 Revert "make/archive: replace the dependency to preprequisite list"
This reverts commit 9c946e2af6.

Change-Id: Ia8b7726d036c861d5eda51765d330e894e0d214a
2021-05-07 16:38:39 +08:00
liuhaitao
edf63e0d2c Revert "binfmt/Makefile: remove the specified prefix from target variables"
This reverts commit 608f380aee.
2021-05-07 16:30:55 +08:00
ligd
4a219c2889 serial: add ctrl+@ to force crash system for debugging
Change-Id: Iee65ac6c94ff298cfadf4429936b3744c16b8698
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit 659679bbb0d7b405e19eb00b13c5b8b388eaf68d)
2021-05-06 22:05:07 +08:00
ligd
97e43c331b procfs: fix cat status error when meet long thread name
nsh> cat /proc/3/status
Name:       init123456789987654Type:       Task
Group:      3
State:      Running

Change-Id: Iddef8fa1fe3a02d407244f46fa05e3f35dd7c84e
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-04-29 19:03:37 +08:00
Jiuzhu Dong
241dcfacd1 cmd/free: add nused field in command free
N/A

Change-Id: I74aa4b1e7394a17c3b117322a4cc24aa52aac3b8
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-04-28 11:34:26 +08:00
ligd
5b9b16db85 procfs: Group: should return tg_task when HAVE_GROUPID opened
Change-Id: Ia3308877ee8de517db48ef6d04c22a9fb437f142
Signed-off-by: ligd <liguiding1@xiaomi.com>
(cherry picked from commit c24ef931a1cd60ad1f4f8e5b4da0cc55f4b44920)
2021-04-26 11:46:11 +08:00
Masayuki Ishikawa
1bded73f9f boards: raspberrypi-pico: Add CONFIG_STACK_COLORATION=y to smp/defconfig 2021-04-25 03:19:24 -05:00
Masayuki Ishikawa
8e161bc992 arch: rp2040: Add stack coloration for the idle task
Summary:
- This commit adds stack coloration for the idle task

Impact:
- rp2040 with CONFIG_STACK_COLORATION=y

Testing:
- Tested with nsh, nshsram and smp configurations
- NOTE: CONFIG_STACK_COLORATION=y needs to be added
2021-04-25 03:19:24 -05:00