Commit Graph

41808 Commits

Author SHA1 Message Date
Jiuzhu Dong 36a0dae82a syslog: support ramlog, up_putc, rpmsg_syslog coexist
N/A

Change-Id: Ia58c7e195da7ad48f3018a131a78b2f01f94e741
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-05-20 11:04:39 +08:00
Xiang Xiao 191e010c5f include/spawn.h: Add POSIX_SPAWN_SETSID definition
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I7ad654a1cb9b74a9f27f52c88fffa8b487a48f33
2021-05-17 20:03:49 +08:00
Xiang Xiao 88326eac8d libc/pwd: Add NSS_BUFLEN_PASSWD macro
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I739679038b2004cc45d78f540831ba81b088a586
2021-05-17 19:58:28 +08:00
Xiang Xiao 6bb3366fe2 libc: Implement openpty function
Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I36e02af0145cd6e740766e7484cc9d5ce410e5e4
2021-05-17 19:58:06 +08:00
Xiang Xiao 874e564c89 drivers/serial: Change the default value of SERIAL_NPOLLWAITERS to 4
since the console is normally opened three time as stdin, stdout and
stderr and remove the dependence on STANDARD_SERIAL because other type
of serial drivers also support the poll through the same codebase.

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: Ie68322c4647cc838b295491329969869d6ba310b
2021-05-17 19:55:40 +08:00
chao.an 9b94919996 sim/bringup: enable uart bridge
Change-Id: Ib843db54ef0d82e9e808663f5f415123c59b0755
Signed-off-by: chao.an <anchao@xiaomi.com>
2021-05-14 11:54:40 +08:00
Jiuzhu Dong 3c58f96ddb group/group_signal: cancel dispatch signal when the number
MIRTOS-647

of members in the group is zero.

Repetition step:
If using waitpid() to wait a task has exited, the waitpid will use
nxsing_kill with signal number 0 to determine if that task is still
alive, and will call group_signal to dispatch signal for each member
of the group and perform signal handing checks, it will assert at
sched/group/group_signal.c:261.

Change-Id: I75ef015a261101277436d742897ce68fed44b5da
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 73008471e4e4a5b1e3aa6cc0d25b5295aec32bb1)
2021-05-12 17:50:38 +08:00
liuhaitao cc2966faa6 net/arp: fix merge error in upgrade nuttx-10.1
Change-Id: I397ef438b7bef1f6fa1d30d2edb5713cc2bf0d34
Signed-off-by: liuhaitao <liuhaitao@xiaomi.com>
2021-05-12 16:37:40 +08:00
Jiuzhu Dong 639c2c5cb2 syslog/Kconfig: support config multi syslog channel
N/A

delete choice for select syslog log device

Change-Id: Ifc02e687526506afac46febec375062949869356
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
(cherry picked from commit 795f2d56dad1f30fd23ae1868226ee8379fd4f93)
2021-05-12 13:08:40 +08:00
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