Search
lxdream.org :: lxdream/src/eventq.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/eventq.c
changeset 422:61a0598e07ff
prev265:5daf59b7f31b
next561:533f6b478071
next586:2a3ba82cf243
author nkeynes
date Sat Oct 06 09:03:24 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix compilation warnings
file annotate diff log raw
1.1 --- a/src/eventq.c Sat Jan 06 04:06:36 2007 +0000
1.2 +++ b/src/eventq.c Sat Oct 06 09:03:24 2007 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: eventq.c,v 1.1 2007-01-06 04:06:36 nkeynes Exp $
1.6 + * $Id: eventq.c,v 1.2 2007-10-06 08:59:42 nkeynes Exp $
1.7 *
1.8 * Simple implementation of one-shot timers. Effectively this allows IO
1.9 * devices to wait until a particular time before completing. We expect
1.10 @@ -22,6 +22,7 @@
1.11 #include <assert.h>
1.12 #include "dreamcast.h"
1.13 #include "eventq.h"
1.14 +#include "asic.h"
1.15 #include "sh4core.h"
1.16
1.17 #define LONG_SCAN_PERIOD 1000000000 /* 1 second */
1.18 @@ -149,8 +150,6 @@
1.19
1.20 void event_schedule( int eventid, uint32_t nanosecs )
1.21 {
1.22 - int i;
1.23 -
1.24 nanosecs += sh4r.slice_cycle;
1.25
1.26 event_t event = &events[eventid];
.