version 1.1.1.1, 2008/06/03 10:38:50 |
version 1.1.1.1.2.1, 2008/08/13 17:12:42 |
|
|
* Re-program alarm timer as count * 200msec. |
* Re-program alarm timer as count * 200msec. |
*/ |
*/ |
static void |
static void |
alarm_handler(int code, void *regs) |
alarm_handler(int code) |
{ |
{ |
u_long tick; |
u_long tick; |
|
|
|
|
printf("Ring! count=%d time=%d msec\n", count, |
printf("Ring! count=%d time=%d msec\n", count, |
(u_int)((tick - start_tick) * 1000 / hz)); |
(u_int)((tick - start_tick) * 1000 / hz)); |
} |
} |
exception_return(regs); |
exception_return(); |
} |
} |
|
|
int |
int |