Page MenuHomeFreeBSD

vm_page: Replace PGA_EXECUTABLE with PGA_MACHDEP0004
ClosedPublic

Authored by alc on Thu, Sep 24, 5:40 PM.
Tags
None
Referenced Files
F176103245: D59995.id187642.diff
Fri, Oct 16, 3:28 AM
F176044982: D59995.id187751.diff
Thu, Oct 15, 2:43 PM
Unknown Object (File)
Wed, Oct 14, 4:51 AM
Unknown Object (File)
Mon, Oct 12, 7:27 PM
Unknown Object (File)
Sun, Oct 11, 6:09 PM
Unknown Object (File)
Mon, Oct 5, 7:19 PM
Unknown Object (File)
Sat, Oct 3, 2:24 AM
Unknown Object (File)
Sat, Oct 3, 2:15 AM
Subscribers

Details

Summary

At present, PGA_EXECUTABLE is only used by the powerpc mmu_oea64 pmap. The MI layer only accesses this flag to assert that it is clear when a managed page is freed.

Soon, we will need a similar, but not identical, machine-dependent flag in the arm64 pmap.

So, we rename the flag to PGA_PMAP_PRIV1, simply saying that it is reserved for use by the pmap. Each pmap can then define a name that best reflects its own meaning. However, we still assert that this flag is clear when a managed page is freed.

Test Plan

No functional change.

Diff Detail

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

Event Timeline

alc requested review of this revision.Thu, Sep 24, 5:40 PM

I would not encode the bit position in the name, for instance how it was done for OBJ_PAGEPRIV1/2.

This revision is now accepted and ready to land.Thu, Sep 24, 5:44 PM
alc edited the summary of this revision. (Show Details)

Rename PGA_MACHDEP0004 to PGA_PMAP_PRIV1.

This revision now requires review to proceed.Fri, Sep 25, 3:59 AM
This revision is now accepted and ready to land.Fri, Sep 25, 4:02 AM