Skip to content
  • Fabio Estevam's avatar
    cmd: mem: Use memcpy for 'cp' command · c2538421
    Fabio Estevam authored
    
    
    Simplify the 'cp' command implementation by using the memcpy() function,
    which brings the additional benefit of performance gain for those who have
    CONFIG_USE_ARCH_MEMCPY selected.
    
    Tested on a mx6qsabreauto board where a 5x gain in performance is seen
    when reading 10MB from the parallel NOR memory.
    
    Signed-off-by: default avatarFabio Estevam <fabio.estevam@nxp.com>
    c2538421