Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-8]: src/sys/arch/arm Pull up following revision(s) (requested by ...
details: https://anonhg.NetBSD.org/src/rev/a5c9d74b471b
branches: netbsd-8
changeset: 435068:a5c9d74b471b
user: martin <martin%NetBSD.org@localhost>
date: Mon Jun 18 15:34:34 2018 +0000
description:
Pull up following revision(s) (requested by jakllsch in ticket #883):
sys/arch/arm/fdt/psci_fdt.c: revision 1.5
sys/arch/arm/arm/psci.c: revision 1.2
Use correct value for PSCI 0.2+ PSCI_CPU_ON.
Fix PSCI 0.1 detection.
diffstat:
sys/arch/arm/arm/psci.c | 8 ++++----
sys/arch/arm/fdt/psci_fdt.c | 7 +++----
2 files changed, 7 insertions(+), 8 deletions(-)
diffs (58 lines):
diff -r 3cf28b3f0354 -r a5c9d74b471b sys/arch/arm/arm/psci.c
--- a/sys/arch/arm/arm/psci.c Mon Jun 18 15:31:49 2018 +0000
+++ b/sys/arch/arm/arm/psci.c Mon Jun 18 15:34:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psci.c,v 1.1.4.2 2017/07/18 19:13:08 snj Exp $ */
+/* $NetBSD: psci.c,v 1.1.4.3 2018/06/18 15:34:34 martin Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -29,7 +29,7 @@
#include "opt_diagnostic.h"
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psci.c,v 1.1.4.2 2017/07/18 19:13:08 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psci.c,v 1.1.4.3 2018/06/18 15:34:34 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -43,9 +43,9 @@
#define PSCI_SYSTEM_OFF 0x84000008
#define PSCI_SYSTEM_RESET 0x84000009
#if defined(__aarch64__)
-#define PSCI_CPU_ON 0xc4000002
+#define PSCI_CPU_ON 0xc4000003
#else
-#define PSCI_CPU_ON 0x84000002
+#define PSCI_CPU_ON 0x84000003
#endif
static psci_fn psci_call_fn;
diff -r 3cf28b3f0354 -r a5c9d74b471b sys/arch/arm/fdt/psci_fdt.c
--- a/sys/arch/arm/fdt/psci_fdt.c Mon Jun 18 15:31:49 2018 +0000
+++ b/sys/arch/arm/fdt/psci_fdt.c Mon Jun 18 15:34:34 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: psci_fdt.c,v 1.1.4.2 2017/07/18 19:13:08 snj Exp $ */
+/* $NetBSD: psci_fdt.c,v 1.1.4.3 2018/06/18 15:34:34 martin Exp $ */
/*-
* Copyright (c) 2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: psci_fdt.c,v 1.1.4.2 2017/07/18 19:13:08 snj Exp $");
+__KERNEL_RCSID(0, "$NetBSD: psci_fdt.c,v 1.1.4.3 2018/06/18 15:34:34 martin Exp $");
#include <sys/param.h>
#include <sys/bus.h>
@@ -102,8 +102,7 @@
return EINVAL;
}
- const char * const compat_0_1[] = { "arm,psci", NULL };
- if (of_match_compatible(phandle, compat_0_1)) {
+ if (of_match_compatible(phandle, compatible) == 1) {
psci_clearfunc();
if (of_getprop_uint32(phandle, "cpu_on", &val) == 0)
psci_setfunc(PSCI_FUNC_CPU_ON, val);
Home |
Main Index |
Thread Index |
Old Index