Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/ofw Make this compile again.
details: https://anonhg.NetBSD.org/src/rev/9de333af2fd1
branches: trunk
changeset: 569683:9de333af2fd1
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Aug 29 17:37:03 2004 +0000
description:
Make this compile again.
diffstat:
sys/arch/arm/ofw/ofwgencfg_clock.c | 19 +++++++++----------
1 files changed, 9 insertions(+), 10 deletions(-)
diffs (67 lines):
diff -r a785a8086e9c -r 9de333af2fd1 sys/arch/arm/ofw/ofwgencfg_clock.c
--- a/sys/arch/arm/ofw/ofwgencfg_clock.c Sun Aug 29 17:36:46 2004 +0000
+++ b/sys/arch/arm/ofw/ofwgencfg_clock.c Sun Aug 29 17:37:03 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ofwgencfg_clock.c,v 1.4 2003/07/15 00:24:48 lukem Exp $ */
+/* $NetBSD: ofwgencfg_clock.c,v 1.5 2004/08/29 17:37:03 thorpej Exp $ */
/*
* Copyright 1997
@@ -36,7 +36,7 @@
/* Include header files */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ofwgencfg_clock.c,v 1.4 2003/07/15 00:24:48 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ofwgencfg_clock.c,v 1.5 2004/08/29 17:37:03 thorpej Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -59,17 +59,16 @@
* hardclock(). Eventually the irqhandler can call hardclock() directly
* but for now we use this function so that we can debug IRQ's
*/
-
-int
-clockhandler(frame)
- struct clockframe *frame;
+
+static int
+clockhandler(struct clockframe *frame)
{
hardclock(frame);
return(0); /* Pass the interrupt on down the chain */
}
-
+#if 0
/*
* int statclockhandler(struct clockframe *frame)
*
@@ -77,7 +76,7 @@
* statclock(). Eventually the irqhandler can call statclock() directly
* but for now we use this function so that we can debug IRQ's
*/
-
+
int
statclockhandler(frame)
struct clockframe *frame;
@@ -86,7 +85,7 @@
statclock(frame);
return(0); /* Pass the interrupt on down the chain */
}
-
+#endif
/*
* void setstatclockrate(int hz)
@@ -125,7 +124,7 @@
printf("clock: hz=%d stathz = %d profhz = %d\n", hz, stathz, profhz);
clockirq = intr_claim(IRQ_TIMER0, IPL_CLOCK, "tmr0 hard clk",
- clockhandler, 0);
+ (int (*)(void *))clockhandler, 0);
if (clockirq == NULL)
panic("Cannot installer timer 0 IRQ handler");
Home |
Main Index |
Thread Index |
Old Index