aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/random
diff options
context:
space:
mode:
authorBojan Novković <bnovkov@FreeBSD.org>2026-09-27 18:25:22 +0000
committerBojan Novković <bnovkov@FreeBSD.org>2026-10-10 12:34:57 +0000
commitf627ff51b76c728b8c6c4a7e5490ce3803c562ad (patch)
treebfe89b3c008a9516628c1c961630f6d32d3569e6 /usr.bin/random
parent05c49e2aa6439820f8f4d5bbf19634f84f6bad5a (diff)
riscv/pmap.c: Don't pass hartid map to 'smp_rendezvous_cpus'HEADmain
The pm_active bitmask is indexed by hart IDs which can differ from CPU IDs. `pmap_invalidate_range_svinval` assumes that the map is indexed by CPU IDs, which is wrong and causes remote TLB invalidations on unrelated CPUs. Fix this by adding a routine that converts a hart-indexed bitmask to a CPU ID-indexed bitmask. While we're here, fix a similar issue in `pmap_active_cpus`. Fixes: 99360212c739 ("riscv/pmap.c: Add an Svinval-aware variant of pmap_invalidate_range") Reported by: markj Reviewed by: markj, mhorne Differential Revision: https://reviews.freebsd.org/D60072
Diffstat (limited to 'usr.bin/random')
0 files changed, 0 insertions, 0 deletions