Page MenuHomeFreeBSD

arm64 pmap: Convert PC_IS_FREE into an inline function.
ClosedPublic

Authored by jhb on Aug 16 2022, 5:15 PM.
Tags
None
Referenced Files
F107328539: D36218.diff
Sun, Jan 12, 1:48 PM
Unknown Object (File)
Sun, Dec 29, 10:26 AM
Unknown Object (File)
Nov 30 2024, 8:40 AM
Unknown Object (File)
Nov 29 2024, 3:20 AM
Unknown Object (File)
Nov 21 2024, 2:41 AM
Unknown Object (File)
Oct 27 2024, 7:38 AM
Unknown Object (File)
Oct 7 2024, 8:55 AM
Unknown Object (File)
Oct 5 2024, 8:31 AM
Subscribers

Details

Summary

This permits inlining the comparisons even in the 16K page case.
Note that since PC_FREEN is -1, values can be compared efficiently
without having to fetch words of pc_freemask from memory via the
'cmn <reg>, #0x1' instruction.

Sponsored by: DARPA

Diff Detail

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

Event Timeline

jhb requested review of this revision.Aug 16 2022, 5:15 PM
markj added inline comments.
sys/arm64/arm64/pmap.c
2473

Is pc_freemask unused?

This revision is now accepted and ready to land.Aug 16 2022, 6:14 PM
sys/arm64/arm64/pmap.c
2473

No, we still use it to initialize the mask in new chunks via memcpy.