<html>
<body>
  <div id="body" style="background-color:#ffffff;" >
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head" style="border-bottom-width:1px;border-bottom-style:solid;" ><td class="headtd" style="padding:0;padding-top:.2em;" colspan="4">Commit in <b><tt>lxdream/src</tt></b></td></tr>
<tr><td><tt><a href="#file1">dreamcast.c</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+4</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-1</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">0c00e6594d01 -> 45602839e067</td></tr>
<tr class="alt" style=";" ><td><tt><a href="#file2">eventq.c</a></tt></td><td id="addedalt" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ccf7cc;" align="right">+1</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-1</td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">0c00e6594d01 -> 45602839e067</td></tr>
<tr><td><tt><a href="#file3">eventq.h</a></tt></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+5</td><td></td><td class="headtd2" style="padding-left:.3em;padding-right:.3em;" nowrap="nowrap">0c00e6594d01 -> 45602839e067</td></tr>
<tr><td></td><td id="added" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ddffdd;" align="right">+10</td><td id="removed" class="headtd2" style="padding-left:.3em;padding-right:.3em; background-color:#ffdddd;" align="right">-2</td><td></td></tr>
</table>
<small id="info" style="color: #888888;" >3 modified files</small><br />
<pre class="comment" style="white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd;" >
Run the eventq at the end of the time-slice rather than the beginning, so
that it runs for the correct period of time when the time-slice finishes
early
</pre>
<hr /><a name="file1" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>dreamcast.c</b></big> <small id="info" style="color: #888888;" >0c00e6594d01 -> 45602839e067</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/dreamcast.c
+++ lxdream/src/dreamcast.c
@@ -91,8 +91,10 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > {
     char *bios_path = lxdream_get_global_config_path_value(CONFIG_BIOS_PATH);
     char *flash_path = lxdream_get_global_config_path_value(CONFIG_FLASH_PATH);
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+
+    /* Initialize the event queue first */
+    event_init();
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-    dreamcast_register_module( &eventq_module );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     /* Register the memory framework */
     dreamcast_register_module( &mem_module );
 
</pre><pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >@@ -127,6 +129,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >     dreamcast_register_module( &aica_module );
     dreamcast_register_module( &maple_module );
     dreamcast_register_module( &ide_module );
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+    dreamcast_register_module( &eventq_module );
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > 
     g_free(bios_path);
     g_free(flash_path);
</pre></div>
<hr /><a name="file2" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>eventq.c</b></big> <small id="info" style="color: #888888;" >0c00e6594d01 -> 45602839e067</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/eventq.c
+++ lxdream/src/eventq.c
@@ -53,7 +53,7 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > void event_save_state( FILE *f );
 int event_load_state( FILE * f );
 
</pre><pre id="removed" class="diff" style="margin:0; background-color:#ffdddd;" >-struct dreamcast_module eventq_module = { "EVENTQ", <span id="removedchars" style="background-color:#ff9999;font-weight:bolder;" >event_init</span>, event_reset, NULL, event_run_slice,
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+struct dreamcast_module eventq_module = { "EVENTQ", <span id="addedchars" style="background-color:#99ff99;font-weight:bolder;" >NULL</span>, event_reset, NULL, event_run_slice,
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >         NULL, event_save_state, event_load_state };
 
 static void event_update_pending( ) 
</pre></div>
<hr /><a name="file3" /><div class="file" style="border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;" >
<span class="pathname" style="font-family:monospace; float:right;" >lxdream/src</span><br />
<div class="fileheader" style="margin-bottom:.5em;" ><big><b>eventq.h</b></big> <small id="info" style="color: #888888;" >0c00e6594d01 -> 45602839e067</small></div>
<pre class="diff" style="margin:0;" ><small id="info" style="color: #888888;" >--- lxdream/src/eventq.h
+++ lxdream/src/eventq.h
@@ -71,6 +71,11 @@
</small></pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" >  */
 void event_execute();
 
</pre><pre id="added" class="diff" style="margin:0; background-color:#ddffdd;" >+/**
+ * Initialize the event queue.
+ */
+void event_init();
+
</pre><pre id="context" class="diff" style="margin:0; background-color:#eeeeee;" > #define MAX_EVENT_ID 128
 
 /* Events 1..96 are defined as the corresponding ASIC events. */
</pre></div>
<center><small>Chaos Theory</small></center>
</div></body></html>