Cast physmem to uint64_t before calling ctob to avoid sign extension errors.
This commit is contained in:
parent
a7ce5c9f94
commit
42bb974da0
@ -174,7 +174,7 @@ booke_cpu_startup(const char *model)
|
||||
|
||||
printf("%s%s", copyright, version);
|
||||
|
||||
format_bytes(pbuf, sizeof(pbuf), ctob(physmem));
|
||||
format_bytes(pbuf, sizeof(pbuf), ctob((uint64_t)physmem));
|
||||
printf("total memory = %s\n", pbuf);
|
||||
|
||||
minaddr = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user