diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-08 17:21:44 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2002-12-08 17:21:44 +0000 |
commit | 7a708337923db2bb6e32ea6a0ccc8e0d2429eaad (patch) | |
tree | 6957fe90b3aff6538fd8540b48a7f438424a1225 /sys/arch | |
parent | 4fac9699be02679c291717cbb5e9f213209adddb (diff) |
duh, provide a wrapper on the hardclock() since it's void
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/hppa/dev/cpu.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sys/arch/hppa/dev/cpu.c b/sys/arch/hppa/dev/cpu.c index 966e6e43ee7..7011e3d9767 100644 --- a/sys/arch/hppa/dev/cpu.c +++ b/sys/arch/hppa/dev/cpu.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cpu.c,v 1.19 2002/11/27 21:47:14 mickey Exp $ */ +/* $OpenBSD: cpu.c,v 1.20 2002/12/08 17:21:43 mickey Exp $ */ /* * Copyright (c) 1998-2002 Michael Shalayeff @@ -80,6 +80,13 @@ cpumatch(parent, cfdata, aux) return 1; } +int +cpu_hardclock(void *v) +{ + hardclock(v); + return (1); +} + void cpuattach(parent, self, aux) struct device *parent; @@ -186,7 +193,7 @@ cpuattach(parent, self, aux) /* sanity against lusers amongst config editors */ if (ca->ca_irq == 31) sc->sc_ih = cpu_intr_establish(IPL_CLOCK, ca->ca_irq, - (int (*)(void *))hardclock, NULL /*frame*/, &sc->sc_dev); + cpu_hardclock, NULL /*frame*/, &sc->sc_dev); else printf ("%s: bad irq %d\n", sc->sc_dev.dv_xname, ca->ca_irq); } |