i80321_timer.c (153277) | i80321_timer.c (153666) |
---|---|
1/* $NetBSD: i80321_timer.c,v 1.7 2003/07/27 04:52:28 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 26 unchanged lines hidden (view full) --- 35 * POSSIBILITY OF SUCH DAMAGE. 36 */ 37 38/* 39 * Timer/clock support for the Intel i80321 I/O processor. 40 */ 41 42#include <sys/cdefs.h> | 1/* $NetBSD: i80321_timer.c,v 1.7 2003/07/27 04:52:28 thorpej Exp $ */ 2 3/*- 4 * Copyright (c) 2001, 2002 Wasabi Systems, Inc. 5 * All rights reserved. 6 * 7 * Written by Jason R. Thorpe for Wasabi Systems, Inc. 8 * --- 26 unchanged lines hidden (view full) --- 35 * POSSIBILITY OF SUCH DAMAGE. 36 */ 37 38/* 39 * Timer/clock support for the Intel i80321 I/O processor. 40 */ 41 42#include <sys/cdefs.h> |
43__FBSDID("$FreeBSD: head/sys/arm/xscale/i80321/i80321_timer.c 153277 2005-12-09 23:52:51Z cognet $"); | 43__FBSDID("$FreeBSD: head/sys/arm/xscale/i80321/i80321_timer.c 153666 2005-12-22 22:16:09Z jhb $"); |
44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/kernel.h> 48#include <sys/module.h> 49#include <sys/time.h> 50#include <sys/bus.h> 51#include <sys/resource.h> 52#include <sys/rman.h> 53#include <sys/timetc.h> 54 55#include <machine/bus.h> | 44 45#include <sys/param.h> 46#include <sys/systm.h> 47#include <sys/kernel.h> 48#include <sys/module.h> 49#include <sys/time.h> 50#include <sys/bus.h> 51#include <sys/resource.h> 52#include <sys/rman.h> 53#include <sys/timetc.h> 54 55#include <machine/bus.h> |
56#include <machine/cpu.h> |
|
56#include <machine/cpufunc.h> | 57#include <machine/cpufunc.h> |
58#include <machine/frame.h> |
|
57#include <machine/resource.h> 58#include <machine/intr.h> 59#include <arm/xscale/i80321/i80321reg.h> 60#include <arm/xscale/i80321/i80321var.h> 61 62#include <arm/xscale/xscalevar.h> 63 64#include "opt_timer.h" --- 307 unchanged lines hidden (view full) --- 372/* 373 * clockhandler: 374 * 375 * Handle the hardclock interrupt. 376 */ 377void 378clockhandler(void *arg) 379{ | 59#include <machine/resource.h> 60#include <machine/intr.h> 61#include <arm/xscale/i80321/i80321reg.h> 62#include <arm/xscale/i80321/i80321var.h> 63 64#include <arm/xscale/xscalevar.h> 65 66#include "opt_timer.h" --- 307 unchanged lines hidden (view full) --- 374/* 375 * clockhandler: 376 * 377 * Handle the hardclock interrupt. 378 */ 379void 380clockhandler(void *arg) 381{ |
380 struct clockframe *frame = arg; | 382 struct trapframe *frame = arg; |
381 382 ticked++; 383 tisr_write(TISR_TMR0); | 383 384 ticked++; 385 tisr_write(TISR_TMR0); |
384 hardclock(frame); | 386 hardclock(TRAPF_USERMODE(frame), TRAPF_PC(frame)); |
385 386 if (i80321_hardclock_hook != NULL) 387 (*i80321_hardclock_hook)(); 388 return; 389} 390 391void 392cpu_startprofclock(void) 393{ 394} 395 396void 397cpu_stopprofclock(void) 398{ 399 400} | 387 388 if (i80321_hardclock_hook != NULL) 389 (*i80321_hardclock_hook)(); 390 return; 391} 392 393void 394cpu_startprofclock(void) 395{ 396} 397 398void 399cpu_stopprofclock(void) 400{ 401 402} |