/* Set TSTATE_MCDE for the task using address map that ADI has been * enabled on if the task is running. If not, it will be set * automatically at the next context switch
*/ if (current->mm == mm) { struct pt_regs *regs;
#define arch_validate_flags(vm_flags) arch_validate_flags(vm_flags) /* arch_validate_flags() - Ensure combination of flags is valid for a * VMA.
*/ staticinlinebool arch_validate_flags(vm_flags_t vm_flags)
{ /* If ADI is being enabled on this VMA, check for ADI * capability on the platform and ensure VMA is suitable * for ADI
*/ if (vm_flags & VM_SPARC_ADI) { if (!adi_capable()) returnfalse;
/* ADI can not be enabled on PFN mapped pages */ if (vm_flags & (VM_PFNMAP | VM_MIXEDMAP)) returnfalse;
/* Mergeable pages can become unmergeable * if ADI is enabled on them even if they * have identical data on them. This can be * because ADI enabled pages with identical * data may still not have identical ADI * tags on them. Disallow ADI on mergeable * pages.
*/ if (vm_flags & VM_MERGEABLE) returnfalse;
} returntrue;
} #endif/* CONFIG_SPARC64 */
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.