Detect zicbom extension and install cache invalidation handlers
Details
Details
- Reviewers
mhorne jrtc27 - Commits
- rG81e2d24bc6ea: riscv: support for Cache-Block Operations (CBO).
The extension found on Codasip X730 and required by AXI DMA engine driver
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
sys/conf/kern.mk | ||
---|---|---|
166 ↗ | (On Diff #153732) | You shouldn't just do that unconditionally. Just .option push; .option arch, +zicbom ... .option pop in asm that needs it. |
sys/riscv/riscv/cbo.c | ||
48 | 0 can be dropped for all these, and does the singular operand really need to be named? %0 is fine, surely? | |
sys/riscv/riscv/identcpu.c | ||
228–229 | Obsolete? | |
354–357 | OF_getencprop can fail. But also why not just pass sizeof(desc->foo) and let it check the length for you? |