Module Name: src
Committed By: ryo
Date: Wed May 23 08:20:12 UTC 2018
Modified Files:
src/sys/arch/aarch64/aarch64: aarch64_machdep.c
Log Message:
style
To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/sys/arch/aarch64/aarch64/aarch64_machdep.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/aarch64/aarch64/aarch64_machdep.c
diff -u src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.3 src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.4
--- src/sys/arch/aarch64/aarch64/aarch64_machdep.c:1.3 Thu May 3 15:47:22 2018
+++ src/sys/arch/aarch64/aarch64/aarch64_machdep.c Wed May 23 08:20:12 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: aarch64_machdep.c,v 1.3 2018/05/03 15:47:22 ryo Exp $ */
+/* $NetBSD: aarch64_machdep.c,v 1.4 2018/05/23 08:20:12 ryo Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.3 2018/05/03 15:47:22 ryo Exp $");
+__KERNEL_RCSID(1, "$NetBSD: aarch64_machdep.c,v 1.4 2018/05/23 08:20:12 ryo Exp $");
#include "opt_arm_debug.h"
#include "opt_ddb.h"
@@ -268,11 +268,12 @@ static int
aarch64_sysctl_machdep_sysreg_helper(SYSCTLFN_ARGS)
{
struct sysctlnode node;
- uint64_t databuf[8];
+#define MAX_SYSCTLREGS 8
+ uint64_t databuf[MAX_SYSCTLREGS];
void *data;
node = *rnode;
- node.sysctl_data = data = &databuf;
+ node.sysctl_data = data = (void *)databuf;
/*
* Don't keep values in advance due to system registers may have