diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2005-12-22 22:16:09 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2005-12-22 22:16:09 +0000 |
| commit | b439e431bf40739ff5a1f60bbc283289d374c849 (patch) | |
| tree | 5d9826b3ac47ed5cf683fc0866e2dc25566d6a56 /sys/isa | |
| parent | f7c20859423ea678579afe42f4804f8b636de512 (diff) | |
Notes
Diffstat (limited to 'sys/isa')
| -rw-r--r-- | sys/isa/atrtc.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/sys/isa/atrtc.c b/sys/isa/atrtc.c index 7a75cfb0befc..f785849faca5 100644 --- a/sys/isa/atrtc.c +++ b/sys/isa/atrtc.c @@ -70,6 +70,7 @@ __FBSDID("$FreeBSD$"); #include <sys/power.h> #include <machine/clock.h> +#include <machine/cpu.h> #include <machine/cputypes.h> #include <machine/frame.h> #include <machine/intr_machdep.h> @@ -155,7 +156,7 @@ static struct timecounter i8254_timecounter = { }; static void -clkintr(struct clockframe *frame) +clkintr(struct trapframe *frame) { if (timecounter->tc_get_timecount == i8254_get_timecount) { @@ -169,8 +170,8 @@ clkintr(struct clockframe *frame) clkintr_pending = 0; mtx_unlock_spin(&clock_lock); } - if (!using_lapic_timer) - hardclock(frame); + KASSERT(!using_lapic_timer, ("clk interrupt enabled with lapic timer")); + hardclock(TRAPF_USERMODE(frame), TRAPF_PC(frame)); #ifdef DEV_MCA /* Reset clock interrupt by asserting bit 7 of port 0x61 */ if (MCA_system) @@ -231,17 +232,17 @@ release_timer2() * in the statistics, but the stat clock will no longer stop. */ static void -rtcintr(struct clockframe *frame) +rtcintr(struct trapframe *frame) { while (rtcin(RTC_INTR) & RTCIR_PERIOD) { if (profprocs != 0) { if (--pscnt == 0) pscnt = psdiv; - profclock(frame); + profclock(TRAPF_USERMODE(frame), TRAPF_PC(frame)); } if (pscnt == psdiv) - statclock(frame); + statclock(TRAPF_USERMODE(frame)); } } |
