diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2007-10-26 23:27:04 +0000 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2007-10-26 23:27:04 +0000 |
commit | 4a5894db1a973a34eda76fb557aa35ee305a1d53 (patch) | |
tree | 9a2b2c0a664757b0adce65b6eaee327f4845a7d8 /uisimulator/sdl | |
parent | c935ed5112a0d7b400d8ae4ff974ff606b84c407 (diff) | |
download | rockbox-4a5894db1a973a34eda76fb557aa35ee305a1d53.tar.gz rockbox-4a5894db1a973a34eda76fb557aa35ee305a1d53.zip |
Correct some commenting left from an earlier set_irq_level version.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15323 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator/sdl')
-rw-r--r-- | uisimulator/sdl/kernel.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/uisimulator/sdl/kernel.c b/uisimulator/sdl/kernel.c index 4e0a508f74..96654d50ac 100644 --- a/uisimulator/sdl/kernel.c +++ b/uisimulator/sdl/kernel.c | |||
@@ -28,10 +28,10 @@ | |||
28 | #include "thread.h" | 28 | #include "thread.h" |
29 | #include "debug.h" | 29 | #include "debug.h" |
30 | 30 | ||
31 | /* Prevent "irq handler" from thread concurrent access as well as current | 31 | /* Condition to signal that "interrupts" may proceed */ |
32 | * access on multiple handlers */ | ||
33 | static SDL_cond *sim_thread_cond; | 32 | static SDL_cond *sim_thread_cond; |
34 | /* Protect sim irq object when it is being changed */ | 33 | /* Mutex to serialize changing levels and exclude other threads while |
34 | * inside a handler */ | ||
35 | static SDL_mutex *sim_irq_mtx; | 35 | static SDL_mutex *sim_irq_mtx; |
36 | static int interrupt_level = HIGHEST_IRQ_LEVEL; | 36 | static int interrupt_level = HIGHEST_IRQ_LEVEL; |
37 | static int status_reg = 0; | 37 | static int status_reg = 0; |
@@ -88,7 +88,6 @@ bool sim_kernel_init(void) | |||
88 | return false; | 88 | return false; |
89 | } | 89 | } |
90 | 90 | ||
91 | /* Create with a count of 0 to have interrupts disabled by default */ | ||
92 | sim_thread_cond = SDL_CreateCond(); | 91 | sim_thread_cond = SDL_CreateCond(); |
93 | if (sim_thread_cond == NULL) | 92 | if (sim_thread_cond == NULL) |
94 | { | 93 | { |