Documentation/RISC-V.md
SerenityOS supports the RISC-V ISA. Only systems with the RV64I base ISA are supported (so 64-bit only).
You can run SerenityOS in the RISC-V QEMU 'virt' machine with:
Meta/serenity.sh run riscv64
SMP (multi-core) is currently not supported. Only the boot hart (CPU) will be used.
Booting via UEFI is supported if the firmware provides a devicetree configuration table. ACPI is currently not supported.
SerenityOS currently requires the following extensions next to the RV64I base ISA:
The kernel requires an SBI 0.2 or later implementation, such as OpenSBI. The SBI implementation needs to support the timer extension "TIME" if the Sstc extension isn't present.
By default, SerenityOS is compiled for RV64GC (RV64IMAFDCZicsr_Zifencei).
The following extensions defined by the RISC-V Profiles are required:
stval provides all needed valuesstvec supports Direct modeThe following extensions are used by the kernel, if supported: