Commit Graph

41773 Commits

Author SHA1 Message Date
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
Masayuki Ishikawa dc9223f4cf arch: rp2040: Fix the initial stack pointer
Summary:
- The NuttX for raspberrypi-pico boots via the boot_stage2 provided
  by the pico-sdk which sets the MSP at the end of the SRAM.
- However, the NuttX expects the MSP is set to the top of the idle stack.
- This commit fixes this issue.

Impact:
- None

Testing:
- Tested with nsh, nshsram and smp configrations
2021-04-25 03:19:24 -05:00
Jiuzhu Dong 6b78e90fc1 syslog/ramlog: get ramlog size by ioctl
N/A

Change-Id: I092334f3247c6c13f3be35169f192bd0777435ef
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
Signed-off-by: ligd <liguiding1@xiaomi.com>
2021-04-25 14:22:05 +08:00
Jiuzhu Dong 0f12793056 fs/hostfs: fix issue about getting error file size by fstat
MIRTOS-651

Change-Id: I10a0d52da649e4c3138e5a2301bcb6525e2e3350
Signed-off-by: Jiuzhu Dong <dongjiuzhu1@xiaomi.com>
2021-04-23 18:34:54 +08:00
chao.an 75dae70a6e arm/v7-a/fpu: add VFP-v3 D32 support
Change-Id: I1e59a191c8cb4ab2bf5527acf38bb65124275016
Signed-off-by: chao.an <anchao@xiaomi.com>
(cherry picked from commit 39351bc597e74088a27d9e0ab9df6fc8f2ad4347)
2021-04-23 17:18:26 +08:00
Masayuki Ishikawa 05f743aa3a Revert "boards: lc823450-xgevk: Workaround to avoid an ostest crash with rndis"
This reverts commit 65274d5fdf.
2021-04-23 03:25:14 -05:00
Masayuki Ishikawa b17ee3fe29 boards: maix-bit: Add smp2 configuration
Summary:
- This commit adds maix-bit:smp2 configuration to test different
  sched parameters such as CONFIG_SCHED_CHILD_STATUS=y

Impact:
- None

Testing:
- Tested with ostest

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-04-23 03:25:14 -05:00
Masayuki Ishikawa 0ec5563a60 sched: group: Fix group_signal() for SMP
Summary:
- This commit fixes the signest_test issue with lc823450-xgevk

Impact:
- SMP with CONFIG_SCHED_CHILD_STATUS=y

Testing:
- Tested with ostest with lc82345-xgevk:rndis
- NOTE: need to revert the commit 65274d5fdf

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-04-23 03:25:14 -05:00
Sara Souza 5c562c1068 risc-v/esp32-c3: Reorganize the timer logic for wireless use 2021-04-22 21:38:16 -05:00
Sara Souza 0c440cfdfe xtensa/esp32: Reorganize the timer logic for wireless use 2021-04-22 21:38:16 -05:00
Matias N f44675879c CI: ensure docker is rebuilt on corresponding workflow changes 2021-04-22 17:35:50 -07:00
Matias N 238fa3bae2 CI: fix docker image name 2021-04-22 15:21:54 -07:00
Matias N 3fef111509 docker: add cmake 2021-04-22 14:31:17 -07:00
Dong Heng fecdd27df3 esp32 & esp32c3: Update Wi-Fi BT and Wi-Fi libraries to fix some issues 2021-04-22 07:34:06 -03:00
Sara Souza 7a80cbf93f risc-v/esp32-c3: Adds oneshot timer driver. 2021-04-22 09:13:58 +01:00
Alan C. Assis ae42005712 esp32/mcp2515: Enable irq after attaching to the pin irq 2021-04-21 22:26:52 -05:00
Sara Souza f696364b6a xtensa/esp32: Adds freerun wrapper 2021-04-21 16:37:39 -03:00
David Sidrane e23c3ffc03 arch: remove up_irq{save|restore} these come from irq.h 2021-04-21 15:59:41 -03:00
Abdelatif Guettouche f43f066018 boards: Update the iperf configs.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-21 13:44:18 -05:00
Masayuki Ishikawa 1b00e5d518 spinlock: Remove SP_SECTION
Summary:
- SP_SECTION was introduced to allocate spinlock in non-cachable
  region mainly for Cortex-A to stabilize the NuttX SMP kernel
- However, all spinlocks are now allocated in cachable area and
  works without any problems
- So SP_SECTION should be removed to simplify the kernel code

Impact:
- None

Testing:
- Build test only

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>
2021-04-20 22:41:44 -05:00
Nathan Hartman 4a75b41b4d Documentation: Minor fixes
Documentation/guides/drivers.rst:

    * Replace wrong "Ethernet" with "SD Card"

Documentation/platforms/arm/imxrt/index.rst:

    * Fix misspelled "Supported"

Documentation/platforms/xtensa/esp32/index.rst:

    * Fix doubled "also"
    * Fix "the" -> "to"

Documentation/reference/os/index.rst:

    * Fix doubled "also"
    * Fix "also" -> "are"
2021-04-20 21:31:18 -05:00
YAMAMOTO Takashi 418e11b8b3 modlib: Always use separate allocation for text and data
Pros:

* Reduce code differences
* Smaller allocations for !CONFIG_ARCH_USE_MODULE_TEXT

Cons:

* Likely to use more memory for !CONFIG_ARCH_USE_MODULE_TEXT in total

Tested with:

* sim:module on macOS
* esp32-devkit:nsh + CONFIG_MODULE on qemu
* lm3s6965-ek:qemu-protected + CONFIG_EXAMPLES_SOTEST on qemu
2021-04-19 22:20:20 -05:00
Masayuki Ishikawa 1a9e7efde5 smp: Remove CONFIG_SMP_IDLETHREAD_STACKSIZE
Summary:
- The CONFIG_SMP_IDLETHREAD_STACKSIZE was introduced to optimize
  the idle stack size for other than CPU0
- However, there are no big differences between the idle stacks.
- This commit removes the config to simplify the kernel code

Impact:
- All SMP configurations

Testing:
- Tested with ostest with the following configs
- spresense:smp, spresense:rndis_smp
- esp32-devkitc:smp (QEMU), maix-bit:smp (QEMU)
- sabre-6quad:smp (QEMU), sabre-6quad:netnsh_smp (QEMU)
- raspberrypi-pico:smp, sim:smp (x86_64)

Signed-off-by: Masayuki Ishikawa <asayuki.Ishikawa@jp.sony.com>
2021-04-19 21:46:39 -05:00
chao.an f8e800765c net/local: correct the sendto() return length
return length should be data length

Signed-off-by: chao.an <anchao@xiaomi.com>
2021-04-19 11:52:17 -05:00
Anthony Merlino 14db894caf stm32h7: Allow selection of SDMMC clock source. 2021-04-19 08:57:49 -07:00
Abdelatif Guettouche c1b0ee436c arch/xtensa/src/esp32/Kconfig: Make bank switching default to disabled.
This config is only useful when there is a > 4MB PSRAM and thus needs to
be selected by the user explicitly.

Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-19 07:48:35 -05:00
Abdelatif Guettouche 792f53b4ac boards/esp32-devkitc: Remove useless configs from PSRAM defconfig.
Signed-off-by: Abdelatif Guettouche <abdelatif.guettouche@espressif.com>
2021-04-19 07:48:35 -05:00