Constify machine32 and machine_arch32.
This commit is contained in:
parent
d8876765c5
commit
72f6b3a65c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32_machdep.c,v 1.16 2005/07/03 16:53:46 cube Exp $ */
|
||||
/* $NetBSD: netbsd32_machdep.c,v 1.17 2005/07/03 17:18:02 cube Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2001 Wasabi Systems, Inc.
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.16 2005/07/03 16:53:46 cube Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.17 2005/07/03 17:18:02 cube Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
#include "opt_execfmt.h"
|
||||
|
@ -68,8 +68,8 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.16 2005/07/03 16:53:46 cube E
|
|||
#include <compat/netbsd32/netbsd32_syscallargs.h>
|
||||
|
||||
/* Provide a the name of the architecture we're emulating */
|
||||
char machine32[] = "i386";
|
||||
char machine_arch32[] = "i386";
|
||||
const char machine32[] = "i386";
|
||||
const char machine_arch32[] = "i386";
|
||||
|
||||
int process_read_fpregs32(struct lwp *, struct fpreg32 *);
|
||||
int process_read_regs32(struct lwp *, struct reg32 *);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32_machdep.c,v 1.9 2005/07/03 16:53:46 cube Exp $ */
|
||||
/* $NetBSD: netbsd32_machdep.c,v 1.10 2005/07/03 17:18:03 cube Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright 2002 Wasabi Systems, Inc.
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.9 2005/07/03 16:53:46 cube Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.10 2005/07/03 17:18:03 cube Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -77,8 +77,8 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.9 2005/07/03 16:53:46 cube Ex
|
|||
|
||||
#include <sh5/fpu.h>
|
||||
|
||||
char machine32[] = "sh5";
|
||||
char machine_arch32[] = "sh5";
|
||||
const char machine32[] = "sh5";
|
||||
const char machine_arch32[] = "sh5";
|
||||
|
||||
#ifdef COMPAT_16
|
||||
int
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32_machdep.c,v 1.48 2005/07/03 16:53:46 cube Exp $ */
|
||||
/* $NetBSD: netbsd32_machdep.c,v 1.49 2005/07/03 17:18:03 cube Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998, 2001 Matthew R. Green
|
||||
|
@ -29,7 +29,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.48 2005/07/03 16:53:46 cube Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.49 2005/07/03 17:18:03 cube Exp $");
|
||||
|
||||
#ifdef _KERNEL_OPT
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
@ -78,8 +78,8 @@ __KERNEL_RCSID(0, "$NetBSD: netbsd32_machdep.c,v 1.48 2005/07/03 16:53:46 cube E
|
|||
#include <machine/netbsd32_machdep.h>
|
||||
|
||||
/* Provide a the name of the architecture we're emulating */
|
||||
char machine32[] = "sparc";
|
||||
char machine_arch32[] = "sparc";
|
||||
const char machine32[] = "sparc";
|
||||
const char machine_arch32[] = "sparc";
|
||||
|
||||
#if NFIRM_EVENTS > 0
|
||||
static int ev_out32 __P((struct firm_event *, int, struct uio *));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: netbsd32_sysctl.c,v 1.18 2005/07/03 16:53:46 cube Exp $ */
|
||||
/* $NetBSD: netbsd32_sysctl.c,v 1.19 2005/07/03 17:18:02 cube Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2003 The NetBSD Foundation, Inc.
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.18 2005/07/03 16:53:46 cube Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: netbsd32_sysctl.c,v 1.19 2005/07/03 17:18:02 cube Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_ddb.h"
|
||||
|
@ -104,8 +104,8 @@ netbsd32_sysctl_vm_loadavg(SYSCTLFN_ARGS)
|
|||
SYSCTL_SETUP(netbsd32_sysctl_emul_setup, "sysctl netbsd32 shadow tree setup")
|
||||
{
|
||||
const struct sysctlnode *_root = &netbsd32_sysctl_root;
|
||||
extern char machine_arch32[];
|
||||
extern char machine32[];
|
||||
extern const char machine_arch32[];
|
||||
extern const char machine32[];
|
||||
|
||||
sysctl_createv(clog, 0, &_root, NULL,
|
||||
CTLFLAG_PERMANENT,
|
||||
|
@ -139,12 +139,12 @@ SYSCTL_SETUP(netbsd32_sysctl_emul_setup, "sysctl netbsd32 shadow tree setup")
|
|||
sysctl_createv(clog, 0, &_root, NULL,
|
||||
CTLFLAG_PERMANENT,
|
||||
CTLTYPE_STRING, "machine", NULL,
|
||||
NULL, 0, machine32, 0,
|
||||
NULL, 0, &machine32, 0,
|
||||
CTL_HW, HW_MACHINE, CTL_EOL);
|
||||
sysctl_createv(clog, 0, &_root, NULL,
|
||||
CTLFLAG_PERMANENT,
|
||||
CTLTYPE_STRING, "machine_arch", NULL,
|
||||
NULL, 0, machine_arch32, 0,
|
||||
NULL, 0, &machine_arch32, 0,
|
||||
CTL_HW, HW_MACHINE_ARCH, CTL_EOL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue