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
Unknown Object (File)
Tue, Sep 23, 3:36 AM
Unknown Object (File)
Sun, Sep 21, 1:39 AM
Unknown Object (File)
Thu, Sep 18, 11:28 PM
Unknown Object (File)
Wed, Sep 17, 7:46 AM
Unknown Object (File)
Tue, Sep 16, 10:52 AM
Unknown Object (File)
Sat, Sep 13, 7:01 AM
Unknown Object (File)
Thu, Sep 4, 11:02 PM
Unknown Object (File)
Thu, Sep 4, 9:51 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 66570
Build 63453: arc lint + arc unit

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.Thu, Sep 4, 4:47 PM
This revision was automatically updated to reflect the committed changes.