"Das U-Boot" Source Tree
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

Tom Rini 15a55dbf 57ea496c

+1 -1
+1 -1
test/cmd/mem_copy.c
··· 21 21 static int do_test(struct unit_test_state *uts, 22 22 const char *suffix, int d, int s, int count) 23 23 { 24 - const long addr = 0x1000; 24 + const long addr = CONFIG_SYS_LOAD_ADDR + 0x1000; 25 25 u8 shadow[BUF_SIZE]; 26 26 u8 *buf; 27 27 int i, w, bytes;