* sprintf -> snprintf
* add a few alpha_mb() ops as called for by folklore and rumour
This commit is contained in:
parent
2c01d202a6
commit
ced3118f58
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: apecs_pci.c,v 1.16 1997/09/02 13:19:15 thorpej Exp $ */
|
||||
/* $NetBSD: apecs_pci.c,v 1.17 1999/06/29 17:10:57 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
@ -29,7 +29,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs_pci.c,v 1.16 1997/09/02 13:19:15 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: apecs_pci.c,v 1.17 1999/06/29 17:10:57 ross Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -184,7 +184,11 @@ apecs_conf_write(cpv, tag, offset, data)
|
||||
(offset & ~0x03) << 5 | /* XXX */
|
||||
0 << 5 | /* XXX */
|
||||
0x3 << 3); /* XXX */
|
||||
|
||||
alpha_mb();
|
||||
*datap = data;
|
||||
alpha_mb();
|
||||
alpha_mb();
|
||||
|
||||
if (secondary) {
|
||||
alpha_mb();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: cia_pci.c,v 1.23 1998/07/29 01:28:44 thorpej Exp $ */
|
||||
/* $NetBSD: cia_pci.c,v 1.24 1999/06/29 17:10:57 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
@ -29,7 +29,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia_pci.c,v 1.23 1998/07/29 01:28:44 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: cia_pci.c,v 1.24 1999/06/29 17:10:57 ross Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -169,8 +169,11 @@ cia_conf_read(cpv, tag, offset)
|
||||
0x3 << 3); /* XXX */
|
||||
}
|
||||
data = (pcireg_t)-1;
|
||||
alpha_mb();
|
||||
if (!(ba = badaddr(datap, sizeof *datap)))
|
||||
data = *datap;
|
||||
alpha_mb();
|
||||
alpha_mb();
|
||||
|
||||
if (secondary) {
|
||||
alpha_mb();
|
||||
@ -249,7 +252,10 @@ cia_conf_write(cpv, tag, offset, data)
|
||||
0 << 5 | /* XXX */
|
||||
0x3 << 3); /* XXX */
|
||||
}
|
||||
alpha_mb();
|
||||
*datap = data;
|
||||
alpha_mb();
|
||||
alpha_mb();
|
||||
|
||||
if (secondary) {
|
||||
alpha_mb();
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pci_1000.c,v 1.5 1999/02/12 06:25:13 thorpej Exp $ */
|
||||
/* $NetBSD: pci_1000.c,v 1.6 1999/06/29 17:10:57 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -67,7 +67,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.5 1999/02/12 06:25:13 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000.c,v 1.6 1999/06/29 17:10:57 ross Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -190,7 +190,7 @@ dec_1000_intr_string(ccv, ih)
|
||||
if (ih >= INTRCNT_DEC_1000_IRQ_LEN)
|
||||
panic("dec_1000_intr_string: bogus dec_1000 IRQ 0x%lx\n", ih);
|
||||
|
||||
sprintf(irqstr, irqmsg_fmt, ih);
|
||||
snprintf(irqstr, sizeof irqstr, irqmsg_fmt, ih);
|
||||
return (irqstr);
|
||||
}
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: pci_1000a.c,v 1.7 1999/02/12 06:25:13 thorpej Exp $ */
|
||||
/* $NetBSD: pci_1000a.c,v 1.8 1999/06/29 17:10:57 ross Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1998 The NetBSD Foundation, Inc.
|
||||
@ -67,7 +67,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.7 1999/02/12 06:25:13 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: pci_1000a.c,v 1.8 1999/06/29 17:10:57 ross Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -212,7 +212,7 @@ dec_1000a_intr_string(ccv, ih)
|
||||
if (ih >= INTRCNT_DEC_1000A_IRQ_LEN)
|
||||
panic("dec_1000a_intr_string: bogus dec_1000a IRQ 0x%lx\n", ih);
|
||||
|
||||
sprintf(irqstr, irqmsg_fmt, ih);
|
||||
snprintf(irqstr, sizeof irqstr, irqmsg_fmt, ih);
|
||||
return (irqstr);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user