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/a92ab9c8d955
branches:  trunk
changeset: 992249:a92ab9c8d955
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 6698902af160 -r a92ab9c8d955 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