Exposed per-core timer interrupts on SPARC
authorAndrew Waterman <waterman@ros-dev.(none)>
Tue, 20 Apr 2010 21:19:12 +0000 (14:19 -0700)
committerKevin Klues <klueska@cs.berkeley.edu>
Thu, 3 Nov 2011 00:35:43 +0000 (17:35 -0700)
commit13f93f0966239120c0afa35d4667f5f7b9171142
tree7a40445612adf902d4790dc28df46474080827c8
parentce556fe52d39ea11689b574fe3fda2e59f963024
Exposed per-core timer interrupts on SPARC

timer_interrupt() will be called on a timer interrupt.  set_timer(usec) arms
a core's timer.  Beware that, internally, we only support a power-of-2 number
of cycles as the timer period, so the usec value will be rounded up to the
next power-of-2 cycle count.  Also, the max period is 2^24 cycles (~60 HZ for
a 1 GHz target clock).
kern/arch/sparc/arch.h
kern/arch/sparc/sparc.h
kern/arch/sparc/timer.c
kern/arch/sparc/timer.h
kern/arch/sparc/trap_table.S