]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r347225:
authorRuslan Bukin <br@FreeBSD.org>
Tue, 4 Jun 2019 15:32:56 +0000 (15:32 +0000)
committerRuslan Bukin <br@FreeBSD.org>
Tue, 4 Jun 2019 15:32:56 +0000 (15:32 +0000)
commit5b14aaae313ec80969f008f85a014b7fba00c775
tree940ab986e606b885c7f76bea2169af4ddf04b820
parenta1c0784daa1b63a3c28c094e487fb851d29fe404
MFC r347225:

Provide a template for busdma code for RISC-V.

RISC-V ISA specifies no cache management instructions so leave cache
operations in cpufunc.h as no-op for now.

Note some new hardware comes with their own memory-mapped cache
management controller.

Tested on HiFive Unleashed board with cgem(4).

Sponsored by: DARPA, AFRL
sys/conf/files.riscv
sys/riscv/include/bus_dma.h
sys/riscv/include/bus_dma_impl.h [new file with mode: 0644]
sys/riscv/include/cpufunc.h
sys/riscv/riscv/busdma_bounce.c [new file with mode: 0644]
sys/riscv/riscv/busdma_machdep.c
sys/riscv/riscv/machdep.c