[PATCH] ARM: Implement copy_to_user_page() for noMMU

Catalin Marinas
2010-03-30T09:31:40Z

On Tue, 2010-03-30 at 08:29 +0100, Russell King - ARM Linux wrote:
> On Tue, Mar 30, 2010 at 02:31:32AM +0100, Jamie Lokier wrote:
> > Other variations such as writing when a mapping is !VM_EXEC and later
> > mapping or mprotecting the same shmem VM_EXEC, but it's even more
> > forbidden semantically to write to a read-only mapping (and just as
> > unchecked on nommu), and conversion of writable to VM_EXEC ought to
> > flush i-cache at mprotect time.
>
> If NX isn't implemented, then arm_elf_read_implies_exec() must return 1
> for the CPU - so that any region that is marked readable will have
> VM_EXEC set.

If we run uClinux on ARMv6 hardware, we get the above function returning
0. Should we make this function conditional on CONFIG_MMU?

--
Catalin