Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/arm/fdt Need to use fdtbus_get_reg64 for mpidr



details:   https://anonhg.NetBSD.org/src/rev/8d68449b7362
branches:  trunk
changeset: 365393:8d68449b7362
user:      skrll <skrll%NetBSD.org@localhost>
date:      Mon Aug 13 12:28:02 2018 +0000

description:
Need to use fdtbus_get_reg64 for mpidr

diffstat:

 sys/arch/arm/fdt/psci_fdt.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 722a12fb6639 -r 8d68449b7362 sys/arch/arm/fdt/psci_fdt.c
--- a/sys/arch/arm/fdt/psci_fdt.c       Mon Aug 13 12:12:30 2018 +0000
+++ b/sys/arch/arm/fdt/psci_fdt.c       Mon Aug 13 12:28:02 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psci_fdt.c,v 1.12 2018/08/12 17:21:36 skrll Exp $ */
+/* $NetBSD: psci_fdt.c,v 1.13 2018/08/13 12:28:02 skrll Exp $ */
 
 /*-
  * Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
 #include "opt_multiprocessor.h"
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psci_fdt.c,v 1.12 2018/08/12 17:21:36 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psci_fdt.c,v 1.13 2018/08/13 12:28:02 skrll Exp $");
 
 #include <sys/param.h>
 #include <sys/bus.h>
@@ -200,7 +200,7 @@
        for (child = OF_child(cpus); child; child = OF_peer(child)) {
                if (!fdtbus_status_okay(child))
                        continue;
-               if (fdtbus_get_reg(child, 0, &mpidr, NULL) != 0)
+               if (fdtbus_get_reg64(child, 0, &mpidr, NULL) != 0)
                        continue;
                if (mpidr == bp_mpidr)
                        continue;       /* BP already started */



Home | Main Index | Thread Index | Old Index