[lkml]   [2009]   [Dec]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] NOMMU: use copy_*_user_page() in access_process_vm()
    On 12/08/2009 10:19 PM, David Howells wrote:
    > Jie Zhang<> wrote:
    >> I agree on using 0 instead of NULL. But for !MMU, I think, vaddr is always as
    >> same as addr. So we don't need to pass it?
    > FRV flushes the vaddr because in MMU mode the cache flush instructions take
    > virtual addresses, so if we pass addr as vaddr, I can use the same cache flush
    > code for both modes. I suspect it makes little difference to the amount of
    > code if we pass that rather than 0, as the value is already computed, and
    > either way, it's going to take one instruction to set up the argument.
    > Note that Blackfin assumes that it may use the dst address for flushing - an
    > assumption that isn't valid in MMU mode with a VIVT cache (which I presume
    > Blackfin isn't, but other CPUs are).
    Thanks for your explanation. Now I understand why passing add as vaddr
    is better.


     \ /
      Last update: 2009-12-08 15:33    [W:0.020 / U:3.568 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site