Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/booke Cast physmem to uint64_t before calli...
details: https://anonhg.NetBSD.org/src/rev/5b9dc5cb23a8
branches: trunk
changeset: 765474:5b9dc5cb23a8
user: matt <matt%NetBSD.org@localhost>
date: Sat May 28 05:24:55 2011 +0000
description:
Cast physmem to uint64_t before calling ctob to avoid sign extension errors.
diffstat:
sys/arch/powerpc/booke/booke_machdep.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 2edc697eb02d -r 5b9dc5cb23a8 sys/arch/powerpc/booke/booke_machdep.c
--- a/sys/arch/powerpc/booke/booke_machdep.c Sat May 28 05:23:08 2011 +0000
+++ b/sys/arch/powerpc/booke/booke_machdep.c Sat May 28 05:24:55 2011 +0000
@@ -174,7 +174,7 @@
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;
Home |
Main Index |
Thread Index |
Old Index