summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/include
diff options
context:
space:
mode:
authorthorpej <thorpej@NetBSD.org>2020-09-04 15:50:09 +0000
committerthorpej <thorpej@NetBSD.org>2020-09-04 15:50:09 +0000
commitdd62222acdad47730d3f22cb484cdffd4e87fd32 (patch)
tree5484bc15b0190c206d99e0496f3f99c873706652 /sys/arch/alpha/include
parent476078313a8e1551225050748825778de45ffb57 (diff)
Put the MI cpu_data at the beginning of cpu_info so that it is
cache line aligned.
Diffstat (limited to 'sys/arch/alpha/include')
-rw-r--r--sys/arch/alpha/include/cpu.h4
-rw-r--r--sys/arch/alpha/include/types.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/alpha/include/cpu.h b/sys/arch/alpha/include/cpu.h
index 7c78f644548..437d858e4b2 100644
--- a/sys/arch/alpha/include/cpu.h
+++ b/sys/arch/alpha/include/cpu.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cpu.h,v 1.93 2020/09/04 03:53:12 thorpej Exp $ */
+/* $NetBSD: cpu.h,v 1.94 2020/09/04 15:50:09 thorpej Exp $ */
/*-
* Copyright (c) 1998, 1999, 2000, 2001 The NetBSD Foundation, Inc.
@@ -99,9 +99,9 @@ struct mchkinfo {
* Per-cpu information. Data accessed by MI code is marked [MI].
*/
struct cpu_info {
+ struct cpu_data ci_data; /* [MI] general per-cpu data */
struct lwp *ci_curlwp; /* [MI] current owner of the cpu */
struct lwp *ci_onproc; /* [MI] current user LWP / kthread */
- struct cpu_data ci_data; /* [MI] general per-cpu data */
struct cctr_state ci_cc; /* [MI] cycle counter state */
volatile int ci_mtx_count; /* [MI] neg count of spin mutexes */
diff --git a/sys/arch/alpha/include/types.h b/sys/arch/alpha/include/types.h
index a394e2b4918..bcb8882fb11 100644
--- a/sys/arch/alpha/include/types.h
+++ b/sys/arch/alpha/include/types.h
@@ -1,4 +1,4 @@
-/* $NetBSD: types.h,v 1.56 2020/04/30 20:48:10 skrll Exp $ */
+/* $NetBSD: types.h,v 1.57 2020/09/04 15:50:09 thorpej Exp $ */
/*-
* Copyright (c) 1990, 1993
@@ -77,6 +77,7 @@ typedef __register_t register_t;
#define __HAVE_ATOMIC64_OPS
#define __HAVE_MM_MD_DIRECT_MAPPED_IO
#define __HAVE_MM_MD_DIRECT_MAPPED_PHYS
+#define __HAVE_CPU_DATA_FIRST
#define __HAVE_CPU_UAREA_ROUTINES
#define __HAVE_CPU_LWP_SETPRIVATE
#define __HAVE___LWP_GETPRIVATE_FAST