Cast physmem to uint64_t before calling ctob to avoid sign extension errors.

This commit is contained in:
matt 2011-05-28 05:24:55 +00:00
parent a7ce5c9f94
commit 42bb974da0

View File

@ -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;