On 1/24/22 7:43 PM, Andreas Schwab wrote:
On Jan 24 2022, Anshuman Khandual wrote:+pgprot_t vm_get_page_prot(unsigned long vm_flags) +{ + switch (vm_flags & (VM_READ | VM_WRITE | VM_EXEC | VM_SHARED)) { + case VM_NONE: + return __pgprot(pgprot_val(PAGE_NONE_C)|_PAGE_CACHE040);_PAGE_CACHE040 should only be present when running on a 040 or 060.
Right, seems like I have missed the conditionality on CPU_IS_040_OR_060 while moving the code, will fix it.