Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch Add CPU_THUNDERX which sets COHERENCY_UNIT and CACH...
details: https://anonhg.NetBSD.org/src/rev/b2033e2c6475
branches: trunk
changeset: 994689:b2033e2c6475
user: skrll <skrll%NetBSD.org@localhost>
date: Sun Nov 18 15:52:03 2018 +0000
description:
Add CPU_THUNDERX which sets COHERENCY_UNIT and CACHE_LINE_SIZE to 128
diffstat:
sys/arch/aarch64/conf/files.aarch64 | 3 ++-
sys/arch/aarch64/include/param.h | 15 ++++++++++++---
sys/arch/evbarm/conf/GENERIC64 | 3 ++-
3 files changed, 16 insertions(+), 5 deletions(-)
diffs (81 lines):
diff -r 7ec72acf870f -r b2033e2c6475 sys/arch/aarch64/conf/files.aarch64
--- a/sys/arch/aarch64/conf/files.aarch64 Sun Nov 18 15:50:26 2018 +0000
+++ b/sys/arch/aarch64/conf/files.aarch64 Sun Nov 18 15:52:03 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: files.aarch64,v 1.9 2018/10/28 10:21:42 jmcneill Exp $
+# $NetBSD: files.aarch64,v 1.10 2018/11/18 15:52:03 skrll Exp $
defflag opt_cpuoptions.h AARCH64_ALIGNMENT_CHECK
defflag opt_cpuoptions.h AARCH64_EL0_STACK_ALIGNMENT_CHECK
@@ -10,6 +10,7 @@
defflag opt_cputypes.h CPU_CORTEXA35: CPU_CORTEX
defflag opt_cputypes.h CPU_CORTEXA53: CPU_CORTEX
defflag opt_cputypes.h CPU_CORTEXA57: CPU_CORTEX
+defflag opt_cputypes.h CPU_THUNDERX: CPU_ARMV8
# Interrupt implementation header definition
defparam opt_arm_intr_impl.h ARM_INTR_IMPL
diff -r 7ec72acf870f -r b2033e2c6475 sys/arch/aarch64/include/param.h
--- a/sys/arch/aarch64/include/param.h Sun Nov 18 15:50:26 2018 +0000
+++ b/sys/arch/aarch64/include/param.h Sun Nov 18 15:52:03 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: param.h,v 1.6 2018/11/15 04:56:52 riastradh Exp $ */
+/* $NetBSD: param.h,v 1.7 2018/11/18 15:52:03 skrll Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -34,6 +34,10 @@
#ifdef __aarch64__
+#ifdef _KERNEL_OPT
+#include "opt_cputypes.h"
+#endif
+
/*
* Machine dependent constants for all ARM processors
*/
@@ -131,18 +135,23 @@
#endif
#ifdef _KERNEL
+
+#if defined(CPU_THUNDERX)
+#define COHERENCY_UNIT 128
+#define CACHE_LINE_SIZE 128
+#endif
+
#ifndef __HIDE_DELAY
void delay(unsigned int);
#define DELAY(x) delay(x)
#endif
-#endif
/*
* Compatibility /dev/zero mapping.
*/
-#ifdef _KERNEL
#ifdef COMPAT_16
#define COMPAT_ZERODEV(x) (x == makedev(0, _DEV_ZERO_oARM))
#endif
+
#endif /* _KERNEL */
#define aarch64_btop(x) ((unsigned long)(x) >> PGSHIFT)
diff -r 7ec72acf870f -r b2033e2c6475 sys/arch/evbarm/conf/GENERIC64
--- a/sys/arch/evbarm/conf/GENERIC64 Sun Nov 18 15:50:26 2018 +0000
+++ b/sys/arch/evbarm/conf/GENERIC64 Sun Nov 18 15:52:03 2018 +0000
@@ -1,5 +1,5 @@
#
-# $NetBSD: GENERIC64,v 1.63 2018/11/18 15:50:26 skrll Exp $
+# $NetBSD: GENERIC64,v 1.64 2018/11/18 15:52:04 skrll Exp $
#
# GENERIC ARM (aarch64) kernel
#
@@ -58,6 +58,7 @@
"
options CPU_CORTEXA53
options CPU_CORTEXA57
+#options CPU_THUNDERX
options SOC_BCM2837
options SOC_RK3328
options SOC_RK3399
Home |
Main Index |
Thread Index |
Old Index