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
F174757407: D59995.diff
Mon, Oct 5, 7:19 PM
Unknown Object (File)
Sat, Oct 3, 2:24 AM
Unknown Object (File)
Sat, Oct 3, 2:15 AM
Unknown Object (File)
Fri, Oct 2, 11:03 PM
Unknown Object (File)
Fri, Oct 2, 4:18 PM
Unknown Object (File)
Fri, Oct 2, 2:37 PM
Unknown Object (File)
Fri, Oct 2, 12:42 AM
Unknown Object (File)
Thu, Oct 1, 9:14 PM
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

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
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