Messages in this thread | | | Subject | Re: [RFC V1 08/31] m68k/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT | From | Anshuman Khandual <> | Date | Tue, 25 Jan 2022 09:12:04 +0530 |
| |
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.
| |