On 25.04.2025 13:24, Andrew Cooper wrote: > The type used for pagetable attributes/permissions is currently unsigned int, > but needs to become architecture dependent as PPC needs unsigned long. > > Introduce mm-types.h to house pte_attr_t. > > Given the new toolchain baseline, we can use __has_include() now to remove the > need for boilerplate on most architectures.
That's true now, when it's just pte_attr_t that's there. Memory management, however, is pretty different between architectures, so I wonder if in the longer run any one will remain that actually can use the common header. Jan