aboutsummaryrefslogtreecommitdiffstats
path: root/doc/usage/cmd
diff options
context:
space:
mode:
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>2024-01-03 11:47:04 +0100
committerTom Rini <trini@konsulko.com>2024-01-16 17:05:29 -0500
commit88a5b32057982d22d8fd4bdc2a3aacec569367c2 (patch)
treea74e34e81df9b0611c10925205ecf8e04bfae290 /doc/usage/cmd
parentd631681e8c5f255938283233cd0f55ed2f9a9a76 (diff)
downloadu-boot-88a5b32057982d22d8fd4bdc2a3aacec569367c2.tar.gz
doc/usage/cmd/cp.rst: document that overlapping regions are supported
Now that the cp command is changed to use memmove() internally, update the documentation to explicitly state that overlapping regions are allowed. Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Diffstat (limited to 'doc/usage/cmd')
-rw-r--r--doc/usage/cmd/cp.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/usage/cmd/cp.rst b/doc/usage/cmd/cp.rst
index 12a24e19fee..67360e30e41 100644
--- a/doc/usage/cmd/cp.rst
+++ b/doc/usage/cmd/cp.rst
@@ -19,7 +19,8 @@ Description
The cp command is used to copy *count* chunks of memory from the *source*
address to the *target* address. If the *target* address points to NOR flash,
-the flash is programmed.
+the flash is programmed. When the *target* address points at ordinary memory,
+memmove() is used, so the two regions may overlap.
The number bytes in one chunk is defined by the suffix defaulting to 4 bytes: