summaryrefslogtreecommitdiff
path: root/post/memory.c
diff options
context:
space:
mode:
Diffstat (limited to 'post/memory.c')
-rw-r--r--post/memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/post/memory.c b/post/memory.c
index 7d55a6d5cee..6884abdb18f 100644
--- a/post/memory.c
+++ b/post/memory.c
@@ -266,7 +266,7 @@ static int memory_post_addrline(ulong *testaddr, ulong *base, ulong size)
ulong xor;
int ret = 0;
- end = base + size;
+ end = (ulong *)((ulong)base + size); /* pointer arith! */
xor = 0;
for(xor = sizeof(ulong); xor > 0; xor <<= 1) {
target = (ulong *)((ulong)testaddr ^ xor);