Skip to content
Snippets Groups Projects
Commit c2538421 authored by Fabio Estevam's avatar Fabio Estevam Committed by Tom Rini
Browse files

cmd: mem: Use memcpy for 'cp' command


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>
parent 4386feb7
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment