diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-17 18:07:37 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2013-02-17 18:07:37 +0000 |
commit | 717e61d6ef53f4915800f75cf141fc9c5d3805d0 (patch) | |
tree | b6771340e02005916ed804903393d2c0cf130745 /sys/arch/m88k | |
parent | c2a0b11fbf08ad8e38335c406d293e705f42a3a1 (diff) |
Constify struct cmmu.
Diffstat (limited to 'sys/arch/m88k')
-rw-r--r-- | sys/arch/m88k/include/cmmu.h | 4 | ||||
-rw-r--r-- | sys/arch/m88k/m88k/m8820x_machdep.c | 4 | ||||
-rw-r--r-- | sys/arch/m88k/m88k/m88k_machdep.c | 4 |
3 files changed, 6 insertions, 6 deletions
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 |