incubator-nuttx/boards/risc-v/c906/smartl-c906
Huang Qi f4a0b7aedd libc: Call pthread_exit in user-space by up_pthread_exit
Drop to user-space in kernel/protected build with up_pthread_exit,
now all pthread_cleanup functions executed in user mode.

* A new syscall SYS_pthread_exit added
* A new tcb flag TCB_FLAG_CANCEL_DOING added
* up_pthread_exit implemented for riscv/arm arch

Signed-off-by: Huang Qi <huangqi3@xiaomi.com>
2021-05-21 22:46:52 -06:00
..
configs libc: Call pthread_exit in user-space by up_pthread_exit 2021-05-21 22:46:52 -06:00
include
kernel boards/risc-v/c906: Remove unneeded pthread_start 2021-05-21 22:46:52 -06:00
scripts arch:rv64:c906:add PMP, change mem map for protect build. 2021-03-28 09:02:48 -05:00
src arch/risc-v: Internal functions should be prefixed by "riscv_" instead 2021-03-20 13:02:54 -03:00
Kconfig
README-qemu.txt arch:rv64:c906:demo protect build without PMP. 2021-03-16 11:43:10 -03:00
README.txt

README.txt

1. Download and install toolchain

  https://occ.t-head.cn/community/download

2. Download and install qemu

  https://occ.t-head.cn/community/download

3. Modify defconfig

4. Configure and build NuttX

  $ make distclean
  $ ./tools/configure.sh smartl-c906:nsh
  $ make -j

5. Run the nuttx by downloading elf to RAM via HW debugger

6. TODO

  Support FPU
  Support ELF based file applications
  Support RISC-V User mode