Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/aarch64/aarch64 Update coherency_unit if needed.
details: https://anonhg.NetBSD.org/src/rev/d75625bc8012
branches: trunk
changeset: 835565:d75625bc8012
user: ryo <ryo%NetBSD.org@localhost>
date: Wed Aug 29 06:16:40 2018 +0000
description:
Update coherency_unit if needed.
Pointed out by skrll@
diffstat:
sys/arch/aarch64/aarch64/cpufunc.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r dadf08df046f -r d75625bc8012 sys/arch/aarch64/aarch64/cpufunc.c
--- a/sys/arch/aarch64/aarch64/cpufunc.c Wed Aug 29 01:58:54 2018 +0000
+++ b/sys/arch/aarch64/aarch64/cpufunc.c Wed Aug 29 06:16:40 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpufunc.c,v 1.3 2018/08/26 18:15:49 ryo Exp $ */
+/* $NetBSD: cpufunc.c,v 1.4 2018/08/29 06:16:40 ryo Exp $ */
/*
* Copyright (c) 2017 Ryo Shimizu <ryo%nerv.org@localhost>
@@ -27,7 +27,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.3 2018/08/26 18:15:49 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cpufunc.c,v 1.4 2018/08/29 06:16:40 ryo Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -135,6 +135,9 @@
arm_dcache_align = sizeof(int) << arm_dcache_maxline;
arm_dcache_align_mask = arm_dcache_align - 1;
}
+ /* update coherency_unit (in param.h) */
+ if (coherency_unit < arm_dcache_align)
+ coherency_unit = arm_dcache_align;
/*
* CLIDR - Cache Level ID Register
Home |
Main Index |
Thread Index |
Old Index