Page MenuHomeFreeBSD

powerpc cpu_idle_60x: Move some variables fully under #ifdef AIM.
ClosedPublic

Authored by jhb on Apr 13 2022, 11:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 24, 5:55 PM
Unknown Object (File)
Fri, Jan 24, 5:08 PM
Unknown Object (File)
Sat, Jan 18, 5:57 PM
Unknown Object (File)
Dec 10 2024, 5:51 PM
Unknown Object (File)
Nov 20 2024, 3:37 PM
Unknown Object (File)
Oct 13 2024, 7:47 AM
Unknown Object (File)
Oct 3 2024, 11:41 PM
Unknown Object (File)
Sep 27 2024, 12:52 PM
Subscribers

Details

Summary

XXX: Is the read from mfmsr required?

Diff Detail

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

Event Timeline

jhb requested review of this revision.Apr 13 2022, 11:05 PM

The mfmsr is required, because if you look at line 763/764 it's doing a mtmsr of (msr | PSL_POW). It *could* be replaced with the mfmsr() in each instance of the mtmsr (inline function and the asm), but that's redundant.

This revision is now accepted and ready to land.Apr 14 2022, 12:04 AM

I meant, is it required even in the non-AIM case (such that I would need to keep the mfmsr even for !AIM)? I'm assuming it isn't required for !AIM though based on your approval.

It's not required in the !AIM case. This function won't even get called in the !AIM case. I think at some point we'll need to clean up that file and split the AIM and !AIM into their respective files.