Page MenuHomeFreeBSD

vm_page: Replace PGA_EXECUTABLE with PGA_MACHDEP0004
AcceptedPublic

Authored by alc on Thu, Sep 24, 5:40 PM.
Tags
None
Referenced Files
F173290866: D59995.id187622.diff
Fri, Sep 25, 1:02 AM
F173290726: D59995.diff
Fri, Sep 25, 1:01 AM
F173277172: D59995.diff
Thu, Sep 24, 10:12 PM
Subscribers

Details

Reviewers
kib
markj
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_MACHDEP0004, 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

Lint
Lint Skipped
Unit
Tests Skipped

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