summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2013-02-17 18:07:37 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2013-02-17 18:07:37 +0000
commit717e61d6ef53f4915800f75cf141fc9c5d3805d0 (patch)
treeb6771340e02005916ed804903393d2c0cf130745 /sys/arch
parentc2a0b11fbf08ad8e38335c406d293e705f42a3a1 (diff)
Constify struct cmmu.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/aviion/aviion/av400_machdep.c4
-rw-r--r--sys/arch/aviion/aviion/av530_machdep.c4
-rw-r--r--sys/arch/luna88k/luna88k/machdep.c4
-rw-r--r--sys/arch/m88k/include/cmmu.h4
-rw-r--r--sys/arch/m88k/m88k/m8820x_machdep.c4
-rw-r--r--sys/arch/m88k/m88k/m88k_machdep.c4
-rw-r--r--sys/arch/mvme88k/mvme88k/m187_machdep.c4
-rw-r--r--sys/arch/mvme88k/mvme88k/m188_machdep.c4
-rw-r--r--sys/arch/mvme88k/mvme88k/m197_machdep.c6
-rw-r--r--sys/arch/mvme88k/mvme88k/m88110.c6
10 files changed, 22 insertions, 22 deletions
diff --git a/sys/arch/aviion/aviion/av400_machdep.c b/sys/arch/aviion/aviion/av400_machdep.c
index 3e66c527950..3c662bb8c0d 100644
--- a/sys/arch/aviion/aviion/av400_machdep.c
+++ b/sys/arch/aviion/aviion/av400_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: av400_machdep.c,v 1.20 2011/01/02 13:40:05 miod Exp $ */
+/* $OpenBSD: av400_machdep.c,v 1.21 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 2006, 2007, Miodrag Vallat.
*
@@ -262,7 +262,7 @@ av400_startup()
void
av400_bootstrap()
{
- extern struct cmmu_p cmmu8820x;
+ extern const struct cmmu_p cmmu8820x;
extern u_char hostaddr[6];
/*
diff --git a/sys/arch/aviion/aviion/av530_machdep.c b/sys/arch/aviion/aviion/av530_machdep.c
index 7b1da1eebc6..b548d18c34a 100644
--- a/sys/arch/aviion/aviion/av530_machdep.c
+++ b/sys/arch/aviion/aviion/av530_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: av530_machdep.c,v 1.6 2011/01/02 13:40:05 miod Exp $ */
+/* $OpenBSD: av530_machdep.c,v 1.7 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 2006, 2007, 2010 Miodrag Vallat.
*
@@ -151,7 +151,7 @@ av530_startup()
void
av530_bootstrap()
{
- extern struct cmmu_p cmmu8820x;
+ extern const struct cmmu_p cmmu8820x;
#if 0
extern u_char hostaddr[6];
#endif
diff --git a/sys/arch/luna88k/luna88k/machdep.c b/sys/arch/luna88k/luna88k/machdep.c
index e510a4d42bf..1d40160b777 100644
--- a/sys/arch/luna88k/luna88k/machdep.c
+++ b/sys/arch/luna88k/luna88k/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.85 2012/12/26 22:32:13 miod Exp $ */
+/* $OpenBSD: machdep.c,v 1.86 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -986,7 +986,7 @@ cpu_sysctl(name, namelen, oldp, oldlenp, newp, newlen, p)
void
luna88k_bootstrap()
{
- extern struct cmmu_p cmmu8820x;
+ extern const struct cmmu_p cmmu8820x;
extern char *end;
vaddr_t avail_start;
extern vaddr_t avail_end;
diff --git a/sys/arch/m88k/include/cmmu.h b/sys/arch/m88k/include/cmmu.h
index 09504fe0f8d..5a6ddb9c023 100644
--- a/sys/arch/m88k/include/cmmu.h
+++ b/sys/arch/m88k/include/cmmu.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: cmmu.h,v 1.27 2011/10/25 18:38:06 miod Exp $ */
+/* $OpenBSD: cmmu.h,v 1.28 2013/02/17 18:07:36 miod Exp $ */
/*
* Mach Operating System
* Copyright (c) 1993-1992 Carnegie Mellon University
@@ -60,7 +60,7 @@ struct cmmu_p {
#endif
};
-extern struct cmmu_p *cmmu;
+extern const struct cmmu_p *cmmu;
#ifdef MULTIPROCESSOR
/*
diff --git a/sys/arch/m88k/m88k/m8820x_machdep.c b/sys/arch/m88k/m88k/m8820x_machdep.c
index 5df0bc4ff34..7756f577fab 100644
--- a/sys/arch/m88k/m88k/m8820x_machdep.c
+++ b/sys/arch/m88k/m88k/m8820x_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m8820x_machdep.c,v 1.50 2011/10/25 18:38:06 miod Exp $ */
+/* $OpenBSD: m8820x_machdep.c,v 1.51 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 2004, 2007, 2010, 2011, Miodrag Vallat.
*
@@ -102,7 +102,7 @@ void m8820x_dma_cachectl(paddr_t, psize_t, int);
void m8820x_dma_cachectl_local(paddr_t, psize_t, int);
void m8820x_initialize_cpu(cpuid_t);
-struct cmmu_p cmmu8820x = {
+const struct cmmu_p cmmu8820x = {
m8820x_init,
m8820x_setup_board_config,
m8820x_cpu_configuration_print,
diff --git a/sys/arch/m88k/m88k/m88k_machdep.c b/sys/arch/m88k/m88k/m88k_machdep.c
index eb6392bdf43..cc4f89dfe1d 100644
--- a/sys/arch/m88k/m88k/m88k_machdep.c
+++ b/sys/arch/m88k/m88k/m88k_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m88k_machdep.c,v 1.54 2013/01/26 20:47:08 miod Exp $ */
+/* $OpenBSD: m88k_machdep.c,v 1.55 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -96,7 +96,7 @@ __cpu_simple_lock_t cmmu_cpu_lock = __SIMPLELOCK_UNLOCKED;
#endif
struct cpu_info m88k_cpus[MAX_CPUS];
-struct cmmu_p *cmmu;
+const struct cmmu_p *cmmu;
/*
* safepri is a safe priority for sleep to set for a spin-wait
diff --git a/sys/arch/mvme88k/mvme88k/m187_machdep.c b/sys/arch/mvme88k/mvme88k/m187_machdep.c
index 16be5792d1b..6036e9e2476 100644
--- a/sys/arch/mvme88k/mvme88k/m187_machdep.c
+++ b/sys/arch/mvme88k/mvme88k/m187_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m187_machdep.c,v 1.22 2010/12/31 21:38:08 miod Exp $ */
+/* $OpenBSD: m187_machdep.c,v 1.23 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 1998, 1999, 2000, 2001 Steve Murphree, Jr.
* Copyright (c) 1996 Nivas Madhur
@@ -224,7 +224,7 @@ void
m187_bootstrap()
{
extern int cpuspeed;
- extern struct cmmu_p cmmu8820x;
+ extern const struct cmmu_p cmmu8820x;
/*
* Find out the processor speed, from the PCC2 prescaler
diff --git a/sys/arch/mvme88k/mvme88k/m188_machdep.c b/sys/arch/mvme88k/mvme88k/m188_machdep.c
index 1fe5637cd38..b673ce6b383 100644
--- a/sys/arch/mvme88k/mvme88k/m188_machdep.c
+++ b/sys/arch/mvme88k/mvme88k/m188_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m188_machdep.c,v 1.54 2010/12/31 21:38:08 miod Exp $ */
+/* $OpenBSD: m188_machdep.c,v 1.55 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
*
@@ -221,7 +221,7 @@ m188_memsize()
void
m188_bootstrap()
{
- extern struct cmmu_p cmmu8820x;
+ extern const struct cmmu_p cmmu8820x;
cmmu = &cmmu8820x;
md_interrupt_func_ptr = m188_ext_int;
diff --git a/sys/arch/mvme88k/mvme88k/m197_machdep.c b/sys/arch/mvme88k/mvme88k/m197_machdep.c
index 2d1a8e88730..1df0582bfa2 100644
--- a/sys/arch/mvme88k/mvme88k/m197_machdep.c
+++ b/sys/arch/mvme88k/mvme88k/m197_machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m197_machdep.c,v 1.46 2011/10/25 18:38:06 miod Exp $ */
+/* $OpenBSD: m197_machdep.c,v 1.47 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 2009 Miodrag Vallat.
@@ -326,8 +326,8 @@ m197_raiseipl(u_int level)
void
m197_bootstrap()
{
- extern struct cmmu_p cmmu88110;
- extern struct cmmu_p cmmu88410;
+ extern const struct cmmu_p cmmu88110;
+ extern const struct cmmu_p cmmu88410;
extern int cpuspeed;
u_int16_t cpu;
u_int8_t version, btimer, pbt;
diff --git a/sys/arch/mvme88k/mvme88k/m88110.c b/sys/arch/mvme88k/mvme88k/m88110.c
index 8791b922ba0..7f98f4cfb5b 100644
--- a/sys/arch/mvme88k/mvme88k/m88110.c
+++ b/sys/arch/mvme88k/mvme88k/m88110.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: m88110.c,v 1.76 2011/10/25 18:38:06 miod Exp $ */
+/* $OpenBSD: m88110.c,v 1.77 2013/02/17 18:07:36 miod Exp $ */
/*
* Copyright (c) 2010, 2011, Miodrag Vallat.
@@ -122,7 +122,7 @@ void m88410_initialize_cpu(cpuid_t);
* This is the function table for the MC88110 built-in CMMUs without
* external 88410.
*/
-struct cmmu_p cmmu88110 = {
+const struct cmmu_p cmmu88110 = {
m88110_init,
m88110_setup_board_config,
m88110_cpu_configuration_print,
@@ -147,7 +147,7 @@ struct cmmu_p cmmu88110 = {
* This is the function table for the MC88110 built-in CMMUs with
* external 88410.
*/
-struct cmmu_p cmmu88410 = {
+const struct cmmu_p cmmu88410 = {
m88410_init,
m88410_setup_board_config,
m88410_cpu_configuration_print,