• G
    csky: Optimize abiv2 copy_to_user_page with VM_EXEC · cc1f6563
    Guo Ren 提交于
    Only when vma is for VM_EXEC, we need sync dcache & icache. eg:
     - gdb ptrace modify user space instruction code area.
    
    Add VM_EXEC condition to reduce unnecessary cache flush.
    
    The abiv1 cpus' cache are all VIPT, so we still need to deal with
    dcache aliasing problem. But there is optimized way to use cache
    color, just like what's done in arch/csky/abiv1/inc/abi/page.h.
    Signed-off-by: NGuo Ren <guoren@linux.alibaba.com>
    cc1f6563
cacheflush.h 1.5 KB