diff options
author | Stefan Eßer <se@FreeBSD.org> | 1994-10-25 22:35:12 +0000 |
---|---|---|
committer | Stefan Eßer <se@FreeBSD.org> | 1994-10-25 22:35:12 +0000 |
commit | 8627141c50c7893a829b1a31988f727c1634cbb5 (patch) | |
tree | 24464973c9cfe1cd9ef06274b6d4ef1b2a2738b6 /sys/isa/atrtc.c | |
parent | 2c06e4a946bf127a24beeb8f3a528810f0068eb3 (diff) | |
download | src-8627141c50c7893a829b1a31988f727c1634cbb5.tar.gz src-8627141c50c7893a829b1a31988f727c1634cbb5.zip |
BEWARE: Interface change of register_intr() !
Changed the fifth parameter to register_intr() from u_int mask into
u_int *maskptr in preparation for new features (shared interrupts and
removable devices, eg. for PCMCIA).
Notes
Notes:
svn path=/head/; revision=3867
Diffstat (limited to 'sys/isa/atrtc.c')
-rw-r--r-- | sys/isa/atrtc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 6a89ee131ab0..a8226bfee407 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -34,7 +34,7 @@ * SUCH DAMAGE. * * from: @(#)clock.c 7.2 (Berkeley) 5/12/91 - * $Id: clock.c,v 1.23 1994/10/04 13:59:44 ache Exp $ + * $Id: clock.c,v 1.24 1994/10/04 18:39:10 ache Exp $ */ /* @@ -540,14 +540,18 @@ test_inittodr(time_t base) /* * Wire clock interrupt in. */ + +static u_int clkmask = HWI_MASK | SWI_MASK; +static u_int rtcmask = SWI_CLOCK_MASK; + void enablertclock() { register_intr(/* irq */ 0, /* XXX id */ 0, /* flags */ 0, clkintr, - HWI_MASK | SWI_MASK, /* unit */ 0); + &clkmask, /* unit */ 0); INTREN(IRQ0); register_intr(/* irq */ 8, /* XXX id */ 1, /* flags */ 0, rtcintr, - SWI_CLOCK_MASK, /* unit */ 0); + &rtcmask, /* unit */ 0); INTREN(IRQ8); outb(IO_RTC, RTC_STATUSB); outb(IO_RTC+1, RTCSB_PINTR | RTCSB_24HR); |