It is rarely used but trivially supported; enable it in LINT.
Details
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 58041 Build 54929: arc lint + arc unit
Paths
| Differential D45475 Authored by mhorne on Jun 3 2024, 6:52 PM.
Tags None Referenced Files
Subscribers
Details
Diff Detail
Event TimelineHerald added a subscriber: imp. · View Herald TranscriptJun 3 2024, 6:52 PM2024-06-03 18:52:00 (UTC+0) Harbormaster completed remote builds in B58040: Diff 139388.Jun 3 2024, 6:52 PM2024-06-03 18:52:01 (UTC+0) mhorne added a parent revision: D45474: riscv: improve commentary around initial stvec.Jun 3 2024, 6:52 PM2024-06-03 18:52:02 (UTC+0) Harbormaster completed remote builds in B58041: Diff 139389.Jun 3 2024, 6:59 PM2024-06-03 18:59:14 (UTC+0) This revision is now accepted and ready to land.Jun 5 2024, 1:58 PM2024-06-05 13:58:03 (UTC+0) Harbormaster completed remote builds in B58376: Diff 140313.Jun 27 2024, 6:29 PM2024-06-27 18:29:31 (UTC+0) This revision is now accepted and ready to land.Jun 30 2024, 3:52 PM2024-06-30 15:52:49 (UTC+0) Closed by commit rG88d81453b115: riscv: support PV_STATS pmap option (authored by mhorne). · Explain WhyJul 8 2024, 2:52 PM2024-07-08 14:52:51 (UTC+0) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 139389 sys/conf/options.riscv
sys/riscv/conf/NOTES
sys/riscv/riscv/pmap.c
|
fsync needs to be added here, or an ahci-hd file-backed disk image will fail on FreeBSD guest shutdown with
(ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: ATA Status Error
(ada0:ahcich0:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT )
(ada0:ahcich0:0:0:0): RES: 41 04 00 00 00 40 00 00 00 00 00
(ada0:ahcich0:0:0:0): Retrying command
(ada0:ahcich0:0:0:0): FLUSHCACHE48. ACB: ea 00 00 00 00 40 00 00 00 00 00 00
(ada0:ahcich0:0:0:0): CAM status: ATA Status Error
(ada0:ahcich0:0:0:0): ATA status: 41 (DRDY ERR), error: 04 (ABRT )
(ada0:ahcich0:0:0:0): RES: 41 04 00 00 00 40 00 00 00 00 00
(ada0:ahcich0:0:0:0): Error 5, Retries exhausted
(ada0:ahcich0:0:0:0): Synchronize cache failed
#ifndef WITHOUT_CAPSICUM
+ cap_rights_init(&rights, CAP_IOCTL, CAP_READ, CAP_SEEK, CAP_WRITE,
+ CAP_FSYNC);
+ if (ro) {
+ cap_rights_clear(&rights, CAP_FSYNC);
+ }