Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/algor/algor Fix prototype of algor_p6032_iointr.
details: https://anonhg.NetBSD.org/src/rev/284eea78c2a0
branches: trunk
changeset: 762901:284eea78c2a0
user: matt <matt%NetBSD.org@localhost>
date: Sat Mar 05 14:04:02 2011 +0000
description:
Fix prototype of algor_p6032_iointr.
Fix buffer overrun ( PR algor/42176 ).
Constify a few things.
diffstat:
sys/arch/algor/algor/algor_p6032_intr.c | 10 +++++-----
sys/arch/algor/algor/algor_p6032var.h | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (63 lines):
diff -r 8a059dd2c2e0 -r 284eea78c2a0 sys/arch/algor/algor/algor_p6032_intr.c
--- a/sys/arch/algor/algor/algor_p6032_intr.c Sat Mar 05 14:02:08 2011 +0000
+++ b/sys/arch/algor/algor/algor_p6032_intr.c Sat Mar 05 14:04:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: algor_p6032_intr.c,v 1.17 2011/02/20 07:51:21 matt Exp $ */
+/* $NetBSD: algor_p6032_intr.c,v 1.18 2011/03/05 14:04:02 matt Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: algor_p6032_intr.c,v 1.17 2011/02/20 07:51:21 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: algor_p6032_intr.c,v 1.18 2011/03/05 14:04:02 matt Exp $");
#include "opt_ddb.h"
#define __INTR_PRIVATE
@@ -85,7 +85,7 @@
#define NIRQMAPS 10
-const char *p6032_intrnames[NIRQMAPS] = {
+const char * const p6032_intrnames[NIRQMAPS] = {
"gpin 0",
"gpin 1",
"gpin 2",
@@ -167,7 +167,7 @@
};
struct p6032_cpuintr p6032_cpuintrs[NINTRS];
-const char *p6032_cpuintrnames[NINTRS] = {
+const char * const p6032_cpuintrnames[NINTRS] = {
"int 0 (pci)",
"int 1 (isa)",
};
@@ -198,7 +198,7 @@
EVCNT_TYPE_INTR, NULL, "mips", p6032_cpuintrnames[i]);
}
- for (i = 0; i <= NIRQMAPS; i++) {
+ for (i = 0; i < __arraycount(p6032_irqmap); i++) {
irqmap = &p6032_irqmap[i];
evcnt_attach_dynamic(&p6032_intrtab[i].intr_count,
diff -r 8a059dd2c2e0 -r 284eea78c2a0 sys/arch/algor/algor/algor_p6032var.h
--- a/sys/arch/algor/algor/algor_p6032var.h Sat Mar 05 14:02:08 2011 +0000
+++ b/sys/arch/algor/algor/algor_p6032var.h Sat Mar 05 14:04:02 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: algor_p6032var.h,v 1.2 2008/04/28 20:23:10 martin Exp $ */
+/* $NetBSD: algor_p6032var.h,v 1.3 2011/03/05 14:04:02 matt Exp $ */
/*-
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -78,7 +78,7 @@
void algor_p6032_intr_init(struct p6032_config *);
-void algor_p6032_iointr(u_int32_t, u_int32_t, u_int32_t, u_int32_t);
+void algor_p6032_iointr(int, vaddr_t, uint32_t);
void algor_p6032_cal_timer(bus_space_tag_t, bus_space_handle_t);
#endif /* _KERNEL */
Home |
Main Index |
Thread Index |
Old Index