No description
Find a file
Lee Lup Yuen 0bac2efd0e Extend MMU Flags to 64-bit for T-Head C906 and Svpbmt
Currently RISC-V NuttX supports 32-bit MMU Flags inside a Page Table Entry. This PR extends the MMU Flags to 64-bit, to support T-Head C906 Core and the new RISC-V Svpbmt Extension.

T-Head C906 uses Bits 59 to 63 in a Leaf Page Table Entry to configure the Memory Type: Cacheable / Bufferable / Strongly-Ordered. For the upcoming port of NuttX to PINE64 Ox64 BL808 SBC, we need to set the Memory Type to Strongly-Ordered for I/O Memory, which requires 64-bit MMU Flags.

Details of C906 MMU: https://lupyuen.github.io/articles/plic3#t-head-errata

Newer RISC-V Cores will use the Svpbmt Extension to configure the Memory Type (Cacheable / Strongly-Ordered). Svpbmt uses Bits 61 to 62 in a Leaf Page Table Entry to define the Memory Type. This also requires 64-bit MMU Flags.

Details of Svpbmt: https://github.com/riscv/riscv-isa-manual/blob/main/src/supervisor.adoc#svpbmt
2023-12-11 02:10:14 -08:00
.github build(deps): bump actions/setup-python from 4 to 5 2023-12-10 21:53:27 -08:00
arch Extend MMU Flags to 64-bit for T-Head C906 and Svpbmt 2023-12-11 02:10:14 -08:00
audio Documentation: remove all migrated READMEs 2023-10-29 21:03:54 -03:00
binfmt coredump:support arm64 coredump 2023-12-08 21:33:03 -03:00
boards add demo for record stack defconfig 2023-12-11 02:06:51 -08:00
cmake cmake: split extra library from library group 2023-12-06 07:56:17 -08:00
crypto sched: explicitly select the cpuload clock source configuration 2023-11-01 09:27:56 +08:00
Documentation Documentation:add Documentation for stack statistics 2023-12-11 02:06:51 -08:00
drivers libc: add instrument api support 2023-12-11 02:06:51 -08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs sched/procfs:use instrument to statistics run time max stack 2023-12-11 02:06:51 -08:00
graphics poll: pollsetup should notify only one fd passd by caller 2023-11-21 09:07:17 +01:00
include arch:Mark key functions to prohibit instrumentation to prevent recursive calls 2023-12-11 02:06:51 -08:00
libs libc: add instrument api support 2023-12-11 02:06:51 -08:00
mm mm: Fix some typos 2023-11-24 09:57:10 -08:00
net net/icmpv6:Optimize the process of obtaining the IPv6 address through RA. 2023-12-05 23:40:37 -08:00
openamp openamp/libmetal: aligned io read/write when size=1,2,3,4 2023-11-17 09:42:52 +01:00
pass1 passl: Author Gregory Nutt: update licenses to Apache 2021-02-09 01:21:53 -08:00
sched arch:Mark key functions to prohibit instrumentation to prevent recursive calls 2023-12-11 02:06:51 -08:00
syscall sched/semaphore: Move named semaphores to user space 2023-11-27 04:52:54 -08:00
tools linux_Dockerfile: only copy gn binary into docker 2023-12-11 10:46:47 +01:00
video build: add initial cmake build system 2023-07-08 13:50:48 +08:00
wireless wireless/bluetooth: Add option to set the HCI TX thread affinity 2023-10-24 22:41:44 +08:00
.asf.yaml feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
.gitignore Documentation: port warnings_filter Sphinx extension from Zephyr 2023-11-28 09:18:29 -08:00
.yamllint feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
AUTHORS AUTHORS: add Tomek CEDRO to the list 2023-03-07 14:15:55 +01:00
CMakeLists.txt cmake: split extra library from library group 2023-12-06 07:56:17 -08:00
CONTRIBUTING.md Remove the tail spaces from all files except Documentation 2023-02-26 13:24:24 -08:00
INVIOLABLES.md
Kconfig debug/assert: decouple configuration of show file name feature 2023-10-20 02:22:48 +08:00
LICENSE free disk space action added to fix docker image build issue 2023-12-08 14:42:17 +01:00
Makefile tools:fix some error use of shell command in Windows native build 2022-11-06 16:41:49 +08:00
NOTICE Remove the double blank line from source files 2022-02-20 20:10:14 +01:00
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.