[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87mtjl8bnl.fsf@igel.home>
Date: Mon, 24 Jan 2022 15:13:18 +0100
From: Andreas Schwab <schwab@...ux-m68k.org>
To: Anshuman Khandual <anshuman.khandual@....com>
Cc: linux-mm@...ck.org, linux-kernel@...r.kernel.org,
hch@...radead.org, akpm@...ux-foundation.org,
Thomas Bogendoerfer <tsbogend@...ha.franken.de>,
linux-m68k@...ts.linux-m68k.org
Subject: Re: [RFC V1 08/31] m68k/mm: Enable ARCH_HAS_VM_GET_PAGE_PROT
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.
--
Andreas Schwab, schwab@...ux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
Powered by blists - more mailing lists