Update according to cast-qual addition.
This commit is contained in:
parent
3051d76108
commit
5c95110a0c
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mtpr.h,v 1.15 2004/02/13 11:36:20 wiz Exp $ */
|
||||
/* $NetBSD: mtpr.h,v 1.16 2005/06/27 11:03:25 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
|
@ -175,11 +175,11 @@
|
|||
|
||||
#define mfpr(reg) \
|
||||
({ \
|
||||
register int val; \
|
||||
register int __val; \
|
||||
__asm__ __volatile ("mfpr %1,%0" \
|
||||
: "=g" (val) \
|
||||
: "=g" (__val) \
|
||||
: "g" (reg)); \
|
||||
val; \
|
||||
__val; \
|
||||
})
|
||||
#endif /* _LOCORE */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: nexus.h,v 1.21 2003/08/07 16:30:11 agc Exp $ */
|
||||
/* $NetBSD: nexus.h,v 1.22 2005/06/27 11:03:25 ragge Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986 The Regents of the University of California.
|
||||
|
@ -114,7 +114,7 @@ struct mem_softc {
|
|||
};
|
||||
|
||||
struct bp_conf {
|
||||
char *type;
|
||||
const char *type;
|
||||
int num;
|
||||
int partyp;
|
||||
int bp_addr;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: autoconf.c,v 1.83 2004/12/14 02:32:03 chs Exp $ */
|
||||
/* $NetBSD: autoconf.c,v 1.84 2005/06/27 11:03:25 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Ludd, University of Lule}, Sweden.
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.83 2004/12/14 02:32:03 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.84 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include "opt_compat_netbsd.h"
|
||||
|
||||
|
@ -181,7 +181,7 @@ CFATTACH_DECL(mainbus, sizeof(struct device),
|
|||
#include "ry.h"
|
||||
|
||||
static int ubtest(void *);
|
||||
static int jmfr(char *, struct device *, int);
|
||||
static int jmfr(const char *, struct device *, int);
|
||||
static int booted_qe(struct device *, void *);
|
||||
static int booted_qt(struct device *, void *);
|
||||
static int booted_le(struct device *, void *);
|
||||
|
@ -253,7 +253,7 @@ device_register(struct device *dev, void *aux)
|
|||
* Simple checks. Return 1 on fail.
|
||||
*/
|
||||
int
|
||||
jmfr(char *n, struct device *dev, int nr)
|
||||
jmfr(const char *n, struct device *dev, int nr)
|
||||
{
|
||||
if (rpb.devtyp != nr)
|
||||
return 1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: clock.c,v 1.41 2003/07/15 02:15:03 lukem Exp $ */
|
||||
/* $NetBSD: clock.c,v 1.42 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1995 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.41 2003/07/15 02:15:03 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: clock.c,v 1.42 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/kernel.h>
|
||||
|
@ -63,7 +63,7 @@ microtime(tvp)
|
|||
static struct timeval lasttime;
|
||||
|
||||
s = splhigh();
|
||||
bcopy((caddr_t)&time, tvp, sizeof(struct timeval));
|
||||
*tvp = time;
|
||||
|
||||
switch (vax_boardtype) {
|
||||
#if VAX46 || VAXANY
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_disasm.c,v 1.14 2005/05/31 00:40:17 chs Exp $ */
|
||||
/* $NetBSD: db_disasm.c,v 1.15 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
|
@ -34,7 +34,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.14 2005/05/31 00:40:17 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_disasm.c,v 1.15 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/proc.h>
|
||||
|
@ -105,7 +105,7 @@ typedef struct {
|
|||
char *curp; /* pointer into result */
|
||||
char *ppc; /* pseudo PC */
|
||||
int opc; /* op-code */
|
||||
char *argp; /* pointer into argument-list */
|
||||
const char *argp; /* pointer into argument-list */
|
||||
int itype; /* instruction-type, eg. branch, call, unspec */
|
||||
int atype; /* argument-type, eg. byte, long, address */
|
||||
int off; /* offset specified by last argument */
|
||||
|
@ -331,19 +331,19 @@ get_operand(ib, size)
|
|||
break;
|
||||
|
||||
case 5: /* register */
|
||||
add_str(ib, (char *)my_db_regs[reg].name);
|
||||
add_str(ib, my_db_regs[reg].name);
|
||||
break;
|
||||
|
||||
case 6: /* register deferred */
|
||||
add_char(ib, '(');
|
||||
add_str(ib, (char *)my_db_regs[reg].name);
|
||||
add_str(ib, my_db_regs[reg].name);
|
||||
add_char(ib, ')');
|
||||
break;
|
||||
|
||||
case 7: /* autodecrement */
|
||||
add_char(ib, '-');
|
||||
add_char(ib, '(');
|
||||
add_str(ib, (char *)my_db_regs[reg].name);
|
||||
add_str(ib, my_db_regs[reg].name);
|
||||
add_char(ib, ')');
|
||||
if (reg == 0x0F) { /* pc is not allowed in this mode */
|
||||
err_print("autodecrement not allowd for PC.\n");
|
||||
|
@ -383,7 +383,7 @@ get_operand(ib, size)
|
|||
break;
|
||||
}
|
||||
add_char(ib, '(');
|
||||
add_str(ib, (char *)my_db_regs[reg].name);
|
||||
add_str(ib, my_db_regs[reg].name);
|
||||
add_char(ib, ')');
|
||||
add_char(ib, '+');
|
||||
break;
|
||||
|
@ -399,7 +399,7 @@ get_operand(ib, size)
|
|||
/* add_str (ib, "b^"); */
|
||||
add_int(ib, tmp);
|
||||
add_char(ib, '(');
|
||||
add_str(ib, (char *)my_db_regs[reg].name);
|
||||
add_str(ib, my_db_regs[reg].name);
|
||||
add_char(ib, ')');
|
||||
break;
|
||||
|
||||
|
@ -414,7 +414,7 @@ get_operand(ib, size)
|
|||
/* add_str (ib, "w^"); */
|
||||
add_int(ib, tmp);
|
||||
add_char(ib, '(');
|
||||
add_str(ib, (char *)my_db_regs[reg].name);
|
||||
add_str(ib, my_db_regs[reg].name);
|
||||
add_char(ib, ')');
|
||||
break;
|
||||
|
||||
|
@ -429,7 +429,7 @@ get_operand(ib, size)
|
|||
/* add_str (ib, "l^"); */
|
||||
add_int(ib, tmp);
|
||||
add_char(ib, '(');
|
||||
add_str(ib, (char *)my_db_regs[reg].name);
|
||||
add_str(ib, my_db_regs[reg].name);
|
||||
add_char(ib, ')');
|
||||
break;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_disasm.h,v 1.2 2003/11/10 08:51:52 wiz Exp $ */
|
||||
/* $NetBSD: db_disasm.h,v 1.3 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
|
@ -53,8 +53,8 @@
|
|||
*/
|
||||
|
||||
struct {
|
||||
char *mnemonic;
|
||||
char *argdesc;
|
||||
const char *mnemonic;
|
||||
const char *argdesc;
|
||||
} vax_inst[256] = {
|
||||
|
||||
/*
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: db_machdep.c,v 1.38 2005/05/31 00:40:17 chs Exp $ */
|
||||
/* $NetBSD: db_machdep.c,v 1.39 2005/06/27 11:03:25 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* :set tabs=4
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.38 2005/05/31 00:40:17 chs Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: db_machdep.c,v 1.39 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include "opt_ddb.h"
|
||||
#include "opt_multiprocessor.h"
|
||||
|
@ -265,7 +265,7 @@ void
|
|||
db_write_bytes(addr, size, data)
|
||||
vaddr_t addr;
|
||||
register size_t size;
|
||||
register char *data;
|
||||
register const char *data;
|
||||
{
|
||||
|
||||
memcpy((caddr_t)addr, data, size);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: disksubr.c,v 1.37 2003/08/07 16:30:18 agc Exp $ */
|
||||
/* $NetBSD: disksubr.c,v 1.38 2005/06/27 11:03:25 ragge Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
|
||||
|
@ -32,7 +32,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.37 2003/08/07 16:30:18 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.38 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -122,7 +122,7 @@ readdisklabel(dev_t dev, void (*strat)(struct buf *),
|
|||
{
|
||||
struct buf *bp;
|
||||
struct disklabel *dlp;
|
||||
char *msg = NULL;
|
||||
const char *msg = NULL;
|
||||
|
||||
if (lp->d_npartitions == 0) { /* Assume no label */
|
||||
lp->d_secperunit = 0x1fffffff;
|
||||
|
@ -374,8 +374,8 @@ disk_reallymapin(struct buf *bp, struct pte *map, int reg, int flag)
|
|||
if (pfnum == 0)
|
||||
panic("mapin zero entry");
|
||||
pte++;
|
||||
*(int *)io++ = pfnum | flag;
|
||||
*(volatile int *)io++ = pfnum | flag;
|
||||
}
|
||||
*(int *)io = 0;
|
||||
*(volatile int *)io = 0;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka410.c,v 1.25 2003/07/15 02:15:03 lukem Exp $ */
|
||||
/* $NetBSD: ka410.c,v 1.26 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka410.c,v 1.25 2003/07/15 02:15:03 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka410.c,v 1.26 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -164,7 +164,7 @@ ka410_reboot(arg)
|
|||
static void
|
||||
ka410_clrf()
|
||||
{
|
||||
struct ka410_clock *clk = (void *)clk_page;
|
||||
volatile struct ka410_clock *clk = (volatile void *)clk_page;
|
||||
|
||||
/*
|
||||
* Clear restart and boot in progress flags
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka43.c,v 1.27 2005/01/14 11:47:43 ragge Exp $ */
|
||||
/* $NetBSD: ka43.c,v 1.28 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1996 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka43.c,v 1.27 2005/01/14 11:47:43 ragge Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka43.c,v 1.28 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -112,7 +112,7 @@ struct ka43_mcframe { /* Format of RigelMAX machine check frame: */
|
|||
int mc43_psl; /* trapped PSL */
|
||||
};
|
||||
|
||||
static char *ka43_mctype[] = {
|
||||
static const char *ka43_mctype[] = {
|
||||
"no error (0)", /* Code 0: No error */
|
||||
"FPA: protocol error", /* Code 1-5: FPA errors */
|
||||
"FPA: illegal opcode",
|
||||
|
@ -362,7 +362,7 @@ ka43_steal_pages()
|
|||
static void
|
||||
ka43_clrf()
|
||||
{
|
||||
volatile struct ka43_clock *clk = (void *)clk_page;
|
||||
volatile struct ka43_clock *clk = (volatile void *)clk_page;
|
||||
|
||||
/*
|
||||
* Clear restart and boot in progress flags in the CPMBX.
|
||||
|
@ -378,7 +378,7 @@ ka43_clrf()
|
|||
static void
|
||||
ka43_halt()
|
||||
{
|
||||
volatile struct ka43_clock *clk = (void *)clk_page;
|
||||
volatile struct ka43_clock *clk = (volatile void *)clk_page;
|
||||
clk->req = 3; /* 3 is halt. */
|
||||
asm("halt");
|
||||
}
|
||||
|
@ -387,7 +387,7 @@ static void
|
|||
ka43_reboot(arg)
|
||||
int arg;
|
||||
{
|
||||
volatile struct ka43_clock *clk = (void *)clk_page;
|
||||
volatile struct ka43_clock *clk = (volatile void *)clk_page;
|
||||
clk->req = 2; /* 2 is reboot. */
|
||||
asm("halt");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka46.c,v 1.18 2003/07/15 02:15:03 lukem Exp $ */
|
||||
/* $NetBSD: ka46.c,v 1.19 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1998 Ludd, University of Lule}, Sweden.
|
||||
* All rights reserved.
|
||||
|
@ -33,7 +33,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka46.c,v 1.18 2003/07/15 02:15:03 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka46.c,v 1.19 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -165,13 +165,13 @@ ka46_steal_pages()
|
|||
static void
|
||||
ka46_halt()
|
||||
{
|
||||
((u_int8_t *) clk_page)[KA46_CPMBX] = KA46_HLT_HALT;
|
||||
((volatile u_int8_t *) clk_page)[KA46_CPMBX] = KA46_HLT_HALT;
|
||||
asm("halt");
|
||||
}
|
||||
|
||||
static void
|
||||
ka46_reboot(int arg)
|
||||
{
|
||||
((u_int8_t *) clk_page)[KA46_CPMBX] = KA46_HLT_BOOT;
|
||||
((volatile u_int8_t *) clk_page)[KA46_CPMBX] = KA46_HLT_BOOT;
|
||||
asm("halt");
|
||||
}
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
/*** needs to be completed MK-990306 ***/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka48.c,v 1.14 2004/02/13 11:36:20 wiz Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka48.c,v 1.15 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -152,7 +152,7 @@ ka48_steal_pages()
|
|||
static void
|
||||
ka48_halt()
|
||||
{
|
||||
((u_int8_t *) clk_page)[KA48_CPMBX] = KA48_HLT_HALT;
|
||||
((volatile u_int8_t *) clk_page)[KA48_CPMBX] = KA48_HLT_HALT;
|
||||
asm("halt");
|
||||
}
|
||||
|
||||
|
@ -160,6 +160,6 @@ static void
|
|||
ka48_reboot(arg)
|
||||
int arg;
|
||||
{
|
||||
((u_int8_t *) clk_page)[KA48_CPMBX] = KA48_HLT_BOOT;
|
||||
((volatile u_int8_t *) clk_page)[KA48_CPMBX] = KA48_HLT_BOOT;
|
||||
asm("halt");
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka49.c,v 1.11 2003/07/15 02:15:04 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka49.c,v 1.12 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -229,13 +229,13 @@ ka49_steal_pages()
|
|||
static void
|
||||
ka49_halt()
|
||||
{
|
||||
((u_int8_t *) clk_page)[KA49_CPMBX] = KA49_HLT_HALT;
|
||||
((volatile u_int8_t *) clk_page)[KA49_CPMBX] = KA49_HLT_HALT;
|
||||
asm("halt");
|
||||
}
|
||||
|
||||
static void
|
||||
ka49_reboot(int arg)
|
||||
{
|
||||
((u_int8_t *) clk_page)[KA49_CPMBX] = KA49_HLT_BOOT;
|
||||
((volatile u_int8_t *) clk_page)[KA49_CPMBX] = KA49_HLT_BOOT;
|
||||
asm("halt");
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka53.c,v 1.9 2003/07/15 02:15:04 lukem Exp $ */
|
||||
/* $NetBSD: ka53.c,v 1.10 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2002 Hugh Graham.
|
||||
* Copyright (c) 2000 Ludd, University of Lule}, Sweden.
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka53.c,v 1.9 2003/07/15 02:15:04 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka53.c,v 1.10 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -81,7 +81,7 @@ struct cpu_dep ka53_calls = {
|
|||
void
|
||||
ka53_conf()
|
||||
{
|
||||
char *cpuname;
|
||||
const char *cpuname;
|
||||
|
||||
/* Don't ask why, but we seem to need this... */
|
||||
volatile int *hej = (void *)mfpr(PR_ISP);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka630.c,v 1.23 2003/08/07 16:30:19 agc Exp $ */
|
||||
/* $NetBSD: ka630.c,v 1.24 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1982, 1988, 1990, 1993
|
||||
* The Regents of the University of California. All rights reserved.
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka630.c,v 1.23 2003/08/07 16:30:19 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka630.c,v 1.24 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -100,7 +100,7 @@ ka630_memerr()
|
|||
}
|
||||
|
||||
#define NMC78032 10
|
||||
char *mc78032[] = {
|
||||
const char *mc78032[] = {
|
||||
0, "immcr (fsd)", "immcr (ssd)", "fpu err 0",
|
||||
"fpu err 7", "mmu st(tb)", "mmu st(m=0)", "pte in p0",
|
||||
"pte in p1", "un intr id",
|
||||
|
@ -142,7 +142,7 @@ ka630_mchk(cmcf)
|
|||
static void
|
||||
ka630_halt()
|
||||
{
|
||||
((struct ka630clock *)clk_page)->cpmbx = KA630CLK_DOTHIS|KA630CLK_HALT;
|
||||
((volatile struct ka630clock *)clk_page)->cpmbx = KA630CLK_DOTHIS|KA630CLK_HALT;
|
||||
asm("halt");
|
||||
}
|
||||
|
||||
|
@ -150,7 +150,7 @@ static void
|
|||
ka630_reboot(arg)
|
||||
int arg;
|
||||
{
|
||||
((struct ka630clock *)clk_page)->cpmbx =
|
||||
((volatile struct ka630clock *)clk_page)->cpmbx =
|
||||
KA630CLK_DOTHIS | KA630CLK_REBOOT;
|
||||
}
|
||||
|
||||
|
@ -160,7 +160,7 @@ ka630_reboot(arg)
|
|||
static void
|
||||
ka630_clrf()
|
||||
{
|
||||
short i = ((struct ka630clock *)clk_page)->cpmbx;
|
||||
short i = ((volatile struct ka630clock *)clk_page)->cpmbx;
|
||||
|
||||
((struct ka630clock *)clk_page)->cpmbx = i & KA630CLK_LANG;
|
||||
((volatile struct ka630clock *)clk_page)->cpmbx = i & KA630CLK_LANG;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka650.c,v 1.27 2003/08/07 16:30:19 agc Exp $ */
|
||||
/* $NetBSD: ka650.c,v 1.28 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1988 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka650.c,v 1.27 2003/08/07 16:30:19 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka650.c,v 1.28 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/time.h>
|
||||
|
@ -159,7 +159,7 @@ uvaxIII_memerr()
|
|||
}
|
||||
|
||||
#define NMC650 15
|
||||
char *mc650[] = {
|
||||
const char *mc650[] = {
|
||||
0, "FPA proto err", "FPA resv inst",
|
||||
"FPA Ill Stat 2", "FPA Ill Stat 1", "PTE in P0, TB miss",
|
||||
"PTE in P1, TB miss", "PTE in P0, Mod", "PTE in P1, Mod",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka680.c,v 1.10 2004/10/11 01:00:10 christos Exp $ */
|
||||
/* $NetBSD: ka680.c,v 1.11 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 2002 Hugh Graham.
|
||||
* Copyright (c) 2000 Ludd, University of Lule}, Sweden.
|
||||
|
@ -35,7 +35,7 @@
|
|||
/* minor modifications for KA690 cache support by isildur@vaxpower.org */
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka680.c,v 1.10 2004/10/11 01:00:10 christos Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka680.c,v 1.11 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/types.h>
|
||||
|
@ -108,7 +108,7 @@ struct cpu_dep ka680_calls = {
|
|||
void
|
||||
ka680_conf()
|
||||
{
|
||||
char *cpuname;
|
||||
const char *cpuname;
|
||||
|
||||
/* Don't ask why, but we seem to need this... */
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka750.c,v 1.36 2003/08/07 16:30:19 agc Exp $ */
|
||||
/* $NetBSD: ka750.c,v 1.37 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1988 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
|
@ -68,7 +68,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka750.c,v 1.36 2003/08/07 16:30:19 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka750.c,v 1.37 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -234,7 +234,7 @@ ka750_memerr()
|
|||
}
|
||||
}
|
||||
|
||||
char *mc750[]={"0","1","2","3","4","5","6","7","8","9","10","11","12","13",
|
||||
const char *mc750[]={"0","1","2","3","4","5","6","7","8","9","10","11","12","13",
|
||||
"14","15"};
|
||||
|
||||
struct mc750frame {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka780.c,v 1.23 2003/08/07 16:30:19 agc Exp $ */
|
||||
/* $NetBSD: ka780.c,v 1.24 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1988 The Regents of the University of California.
|
||||
* All rights reserved.
|
||||
|
@ -35,7 +35,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka780.c,v 1.23 2003/08/07 16:30:19 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka780.c,v 1.24 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -298,7 +298,7 @@ memlog(int m, struct mcr780 *mcr)
|
|||
}
|
||||
#endif /* TRENDATA */
|
||||
|
||||
char *mc780[]={"0","1","2","3","4","5","6","7","8","9","10","11","12","13",
|
||||
const char *mc780[]={"0","1","2","3","4","5","6","7","8","9","10","11","12","13",
|
||||
"14","15"};
|
||||
|
||||
struct mc780frame {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka820.c,v 1.40 2004/02/13 11:36:20 wiz Exp $ */
|
||||
/* $NetBSD: ka820.c,v 1.41 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1988 Regents of the University of California.
|
||||
* All rights reserved.
|
||||
|
@ -39,7 +39,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka820.c,v 1.40 2004/02/13 11:36:20 wiz Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka820.c,v 1.41 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include "opt_multiprocessor.h"
|
||||
|
||||
|
@ -348,7 +348,7 @@ ka820_memerr()
|
|||
{
|
||||
struct mem_bi_softc *sc;
|
||||
int m, hard, csr1, csr2;
|
||||
char *type;
|
||||
const char *type;
|
||||
|
||||
static char b1[] = "\20\40ERRSUM\37ECCDIAG\36ECCDISABLE\20CRDINH\17VALID\
|
||||
\16INTLK\15BROKE\13MWRITEERR\12CNTLERR\11INTLV";
|
||||
|
@ -393,7 +393,7 @@ static char b2[] = "\20\40RDS\37HIERR\36CRD\35ADRS";
|
|||
}
|
||||
|
||||
/* these are bits 0 to 6 in the summary field */
|
||||
char *mc8200[] = {
|
||||
const char *mc8200[] = {
|
||||
"cpu bad ipl", "ucode lost err",
|
||||
"ucode par err", "DAL par err",
|
||||
"BI bus err", "BTB tag par",
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: ka860.c,v 1.24 2003/08/07 16:30:20 agc Exp $ */
|
||||
/* $NetBSD: ka860.c,v 1.25 2005/06/27 11:03:25 ragge Exp $ */
|
||||
/*
|
||||
* Copyright (c) 1986, 1988 Regents of the University of California.
|
||||
* All rights reserved.
|
||||
|
@ -36,7 +36,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka860.c,v 1.24 2003/08/07 16:30:20 agc Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: ka860.c,v 1.25 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/device.h>
|
||||
|
@ -170,7 +170,7 @@ ka86_memerr()
|
|||
}
|
||||
|
||||
#define NMC8600 7
|
||||
char *mc8600[] = {
|
||||
const char *mc8600[] = {
|
||||
"unkn type", "fbox error", "ebox error", "ibox error",
|
||||
"mbox error", "tbuf error", "mbox 1D error"
|
||||
};
|
||||
|
@ -377,7 +377,7 @@ abus_attach(struct device *parent, struct device *self, void *aux)
|
|||
for (i = 0; i < NIOA8600; i++) {
|
||||
sbiar = (struct sbia_regs *)vax_map_physmem((paddr_t)IOA8600(i),
|
||||
(IOAMAPSIZ / VAX_NBPG));
|
||||
if (badaddr((caddr_t)sbiar, 4)) {
|
||||
if (badaddr(__UNVOLATILE(sbiar), 4)) {
|
||||
vax_unmap_physmem((vaddr_t)sbiar, (IOAMAPSIZ / VAX_NBPG));
|
||||
continue;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: sgmap.c,v 1.11 2003/07/15 02:15:05 lukem Exp $ */
|
||||
/* $NetBSD: sgmap.c,v 1.12 2005/06/27 11:03:25 ragge Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
|
||||
|
@ -38,7 +38,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: sgmap.c,v 1.11 2003/07/15 02:15:05 lukem Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: sgmap.c,v 1.12 2005/06/27 11:03:25 ragge Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -104,7 +104,7 @@ vax_sgmap_init(t, sgmap, name, sgvabase, sgvasize, ptva, minptalign)
|
|||
* Create the extent map used to manage the virtual address
|
||||
* space.
|
||||
*/
|
||||
sgmap->aps_ex = extent_create((char *)name, sgvabase, sgvasize - 1,
|
||||
sgmap->aps_ex = extent_create(name, sgvabase, sgvasize - 1,
|
||||
M_DMAMAP, NULL, 0, EX_NOWAIT|EX_NOCOALESCE);
|
||||
if (sgmap->aps_ex == NULL) {
|
||||
printf("unable to create extent map for sgmap `%s'\n", name);
|
||||
|
|
Loading…
Reference in New Issue