Page MenuHomeFreeBSD

arm64: Add a function to check a range of CPU revs
ClosedPublic

Authored by andrew on Aug 27 2025, 5:02 PM.
Tags
None
Referenced Files
F164793974: D52187.id161527.diff
Tue, Aug 4, 2:14 AM
F164793949: D52187.id161051.diff
Tue, Aug 4, 2:14 AM
F164710650: D52187.diff
Mon, Aug 3, 7:26 AM
Unknown Object (File)
Sun, Aug 2, 8:01 PM
Unknown Object (File)
Thu, Jul 23, 3:59 AM
Unknown Object (File)
Wed, Jul 22, 9:08 AM
Unknown Object (File)
Tue, Jul 21, 2:03 AM
Unknown Object (File)
Mon, Jul 20, 4:23 PM
Subscribers

Details

Summary

Add a function that can check if a given midr is within a range of
revisions. This will be used to check if a CPU is affected by a known
erratum.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

sys/arm64/include/cpu.h
199

This guard seems a little surprising to me

sys/arm64/include/cpu.h
199

It should be #if !defined(__ASSEMBLER__). It's needed because we include this file in locore.S for CPU_AFF_MASK (and possibly others)

This revision was not accepted when it landed; it landed in state Needs Review.Sep 4 2025, 4:47 PM
This revision was automatically updated to reflect the committed changes.