aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sec/(developers-only)
diff options
context:
space:
mode:
authorRuslan Bukin <br@FreeBSD.org>2026-10-06 18:55:39 +0000
committerRuslan Bukin <br@FreeBSD.org>2026-10-06 19:09:04 +0000
commit3e01ebda68291db307a5e6c23d4995c638be9228 (patch)
treeaac8471d6c37c45f75ec9e783dc4c7cc8f9982f8 /sys/dev/sec/(developers-only)
parent572cd669d6997b759084191007f3744a3610b529 (diff)
riscv: support the new "riscv,isa-extensions" string-array.HEADmain
Support the new "riscv,isa-extensions" property on RISC-V hart nodes in FDT. The "riscv,isa" property is deprecated, but cannot be removed because doing so would break compatibility with existing DTBs. The new properties replace it: "riscv,isa-base" describes the base ISA and "riscv,isa-extensions" is a string array containing the supported ISA extensions. The "riscv,isa-extensions" property can be relatively large; on the Spacemit K3 SoC it is approximately 300 bytes. The FreeBSD OFW interface does not provide access to the underlying FDT property data without copying it, and memory allocation is not possible this early. So allocate a static buffer for the property instead. Reuse the existing parse_riscv_isa() implementation to parse both the new extension property and the legacy "riscv,isa" property. Reviewed by: bnovkov, mhorne Sponsored by: EPSRC ("UKRI3001: CHERI Research Centre") Differential Revision: https://reviews.freebsd.org/D60209
Diffstat (limited to 'sys/dev/sec/(developers-only)')
0 files changed, 0 insertions, 0 deletions