Page MenuHomeFreeBSD

arm64: Move setting TCR_HD to C code
Needs ReviewPublic

Authored by andrew on Wed, Nov 27, 6:10 PM.
Tags
None
Referenced Files
F103890810: D47808.diff
Sat, Nov 30, 7:29 PM
Unknown Object (File)
Thu, Nov 28, 5:17 AM
Unknown Object (File)
Thu, Nov 28, 5:17 AM
Unknown Object (File)
Thu, Nov 28, 5:01 AM
Subscribers

Details

Reviewers
manu
markj
alc
Group Reviewers
ARM
Summary

To allow for it to be more selective when we enable it, e.g. if the
CPU has an erratum that prevents us from doing so, move the check for
setting TCR_HD to C.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 60843
Build 57727: arc lint + arc unit

Event Timeline

sys/arm64/arm64/pmap.c
1635

Is there a reason for omitting spaces here?

sys/arm64/arm64/pmap.c
1635

Just to fit in 1 line

sys/arm64/arm64/locore.S
951

What's the reason for not setting TCR_HA in C as well?

sys/arm64/arm64/pmap.c
1635

IMO it would be nicer to just break the line.

sys/arm64/arm64/locore.S
951

There are no errata where we need to selectively set TCR_HA so there is no need to move it.

sys/arm64/arm64/pmap.c
1635

I'd prefer to not change it as it will cause conflicts. This change so I can MFC the workaround faster than the cpu_feat code later in the stack.