Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/arm/broadcom Correctly report memory size, not cloc...



details:   https://anonhg.NetBSD.org/src/rev/abcd43d4c4fb
branches:  trunk
changeset: 365550:abcd43d4c4fb
user:      rin <rin%NetBSD.org@localhost>
date:      Tue Aug 21 08:45:17 2018 +0000

description:
Correctly report memory size, not clock rate when VERBOSE_INIT_ARM.

diffstat:

 sys/arch/arm/broadcom/bcm283x_platform.c |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (32 lines):

diff -r ecf685b52287 -r abcd43d4c4fb sys/arch/arm/broadcom/bcm283x_platform.c
--- a/sys/arch/arm/broadcom/bcm283x_platform.c  Tue Aug 21 08:22:33 2018 +0000
+++ b/sys/arch/arm/broadcom/bcm283x_platform.c  Tue Aug 21 08:45:17 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bcm283x_platform.c,v 1.12 2018/08/10 04:44:15 rin Exp $        */
+/*     $NetBSD: bcm283x_platform.c,v 1.13 2018/08/21 08:45:17 rin Exp $        */
 
 /*-
  * Copyright (c) 2017 Jared D. McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.12 2018/08/10 04:44:15 rin Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bcm283x_platform.c,v 1.13 2018/08/21 08:45:17 rin Exp $");
 
 #include "opt_arm_debug.h"
 #include "opt_bcm283x.h"
@@ -663,10 +663,9 @@
                curcpu()->ci_data.cpu_cc_freq = vb.vbt_armclockrate.rate;
 
 #ifdef VERBOSE_INIT_ARM
-       if (vcprop_tag_success_p(&vb.vbt_memory.tag)) {
-               printf("%s: memory size  %d\n", __func__,
-                   vb.vbt_armclockrate.rate);
-       }
+       if (vcprop_tag_success_p(&vb.vbt_memory.tag))
+               printf("%s: memory size  %zu\n", __func__,
+                   bcm283x_memorysize);
        if (vcprop_tag_success_p(&vb.vbt_armclockrate.tag))
                printf("%s: arm clock    %d\n", __func__,
                    vb.vbt_armclockrate.rate);



Home | Main Index | Thread Index | Old Index