Page MenuHomeFreeBSD

Use atomic_fcmpset in pmap_promote_pde().
AbandonedPublic

Authored by markj on Nov 3 2018, 5:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 28 2023, 2:21 PM
Unknown Object (File)
Dec 20 2023, 2:08 AM
Unknown Object (File)
Nov 5 2023, 6:12 PM
Unknown Object (File)
Sep 28 2023, 2:03 AM
Unknown Object (File)
Sep 26 2023, 9:53 PM
Unknown Object (File)
Sep 14 2023, 6:31 PM
Unknown Object (File)
Sep 11 2023, 4:52 AM
Unknown Object (File)
Aug 27 2023, 6:55 AM
Subscribers
None

Details

Reviewers
alc
kib
Summary

Something I noticed while reading code, no functional change intended.

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 20633
Build 20050: arc lint + arc unit

Event Timeline

markj added reviewers: alc, kib.
This revision is now accepted and ready to land.Nov 4 2018, 5:12 PM
sys/amd64/amd64/pmap.c
4873

I believe that this line is still needed after the conversion.

4898

Ditto.

sys/i386/i386/pmap.c
3556

Ditto.

3582

This case looks okay.

markj marked 3 inline comments as done.
  • Fix the bugs pointed out by alc. I mistakenly thought that fcmpset updates the expected value upon success.
This revision now requires review to proceed.Nov 5 2018, 4:07 AM
sys/i386/i386/pmap.c
3553

Have you tried building a PAE kernel? I suspect that &newpde will provoke a warning.

3579

Ditto.

markj marked an inline comment as done.Nov 6 2018, 5:05 PM
markj added inline comments.
sys/i386/i386/pmap.c
3553

Oh, I'm surprised that we're using 32-bit cmpset here then. I guess we avoid cmpxchg8b here as a micro-optimization, since PG_RW is in the lower 32 bits?

sys/i386/i386/pmap.c
3553

Yes, and we also avoid conditional compilation.

This revision is now accepted and ready to land.May 18 2019, 8:24 PM

Commit 3687797618b6c978ad733bd206a623e5df47dbe3 , I do not think it is worth touching i386.