diff options
author | Tom Rini <trini@konsulko.com> | 2024-10-29 18:36:49 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-11-01 13:37:25 -0600 |
commit | 15a55dbff6d9b64178ccb7d12c0e0d24fa79f37a (patch) | |
tree | 7db913aacbf7f861deee3254fd75fb4613723233 | |
parent | 57ea496c3801b4a604e6d9cb8885544c84635f0b (diff) |
test/cmd/mem_copy.c: Use CONFIG_SYS_LOAD_ADDR for base
When reading/writing to memory we cannot assume that a base address of
0x0 is correct and functional. So use CONFIG_SYS_LOAD_ADDR as the base
from which we add a bit more padding and being our tests.
Signed-off-by: Tom Rini <trini@konsulko.com>
-rw-r--r-- | test/cmd/mem_copy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cmd/mem_copy.c b/test/cmd/mem_copy.c index 1ba0cebbbe0..67eca328777 100644 --- a/test/cmd/mem_copy.c +++ b/test/cmd/mem_copy.c @@ -21,7 +21,7 @@ struct param { static int do_test(struct unit_test_state *uts, const char *suffix, int d, int s, int count) { - const long addr = 0x1000; + const long addr = CONFIG_SYS_LOAD_ADDR + 0x1000; u8 shadow[BUF_SIZE]; u8 *buf; int i, w, bytes; |