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
F176499560: D59995.id187642.diff
Mon, Oct 19, 8:41 AM
Unknown Object (File)
Sun, Oct 18, 8:16 AM
Unknown Object (File)
Sun, Oct 18, 4:59 AM
Unknown Object (File)
Sat, Oct 17, 12:11 AM
Unknown Object (File)
Fri, Oct 16, 3:47 PM
Unknown Object (File)
Fri, Oct 16, 3:28 AM
Unknown Object (File)
Thu, Oct 15, 2:43 PM
Unknown Object (File)
Wed, Oct 14, 4:51 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