From b076092fdd67d1ebb8c03e6078349eeadcfc4c0b Mon Sep 17 00:00:00 2001 From: mav Date: Tue, 13 Jul 2010 12:46:06 +0000 Subject: Rise knowledge about curthread->td_intr_frame by one step. Make timer callback argument really opaque. Not repeat interrupt handler's problem in case somebody will ever need to have both argument and frame. --- sys/x86/isa/atrtc.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sys/x86/isa/atrtc.c') diff --git a/sys/x86/isa/atrtc.c b/sys/x86/isa/atrtc.c index 0b913c3..5a5ba63 100644 --- a/sys/x86/isa/atrtc.c +++ b/sys/x86/isa/atrtc.c @@ -209,11 +209,8 @@ rtc_intr(void *arg) while (rtcin(RTC_INTR) & RTCIR_PERIOD) { flag = 1; - if (sc->et.et_active) { - sc->et.et_event_cb(&sc->et, - sc->et.et_arg ? sc->et.et_arg : - curthread->td_intr_frame); - } + if (sc->et.et_active) + sc->et.et_event_cb(&sc->et, sc->et.et_arg); } return(flag ? FILTER_HANDLED : FILTER_STRAY); } -- cgit v1.1