diff options
author | Thomas Martitz <kugel@rockbox.org> | 2012-01-04 18:07:21 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2012-01-22 18:46:44 +0100 |
commit | 991ae1e39553172a7dd6cd8c634aebfce892e261 (patch) | |
tree | 672a4583af663def399c4fefdbad060605397fbc /firmware/target/hosted/sdl | |
parent | eaa83bd64775b87e943d345e2810deed44408776 (diff) | |
download | rockbox-991ae1e39553172a7dd6cd8c634aebfce892e261.tar.gz rockbox-991ae1e39553172a7dd6cd8c634aebfce892e261.zip |
Create fimrware/asm directory for assembly optimized stuff.
This dir is suitable for stuff that doesn't fit the target tree, e.g. because
it also builds on hosted or otherwise. It also has a generic subfolder for
fallback C implementations so that not all archs need to provide asm files.
SOURCES should only contain "foo.c" where foo.c includes the specific
<arch>/foo.c files from the subdirs using the preprocessor. This way automatic
selection of asm versions or generic C verion is possible.
For the start, the thread support files are moved, since ASM threads can
be used on hosted platforms as well. Since core_sleep() remains platform
specific it's moved to the corresponding system.h headers.
Change-Id: Iebff272f3407a6eaafeb7656ceb0ae9eca3f7cb9
Diffstat (limited to 'firmware/target/hosted/sdl')
-rw-r--r-- | firmware/target/hosted/sdl/system-sdl.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/firmware/target/hosted/sdl/system-sdl.h b/firmware/target/hosted/sdl/system-sdl.h index d607e5e0a6..a20cbe5fac 100644 --- a/firmware/target/hosted/sdl/system-sdl.h +++ b/firmware/target/hosted/sdl/system-sdl.h | |||
@@ -41,6 +41,8 @@ int set_irq_level(int level); | |||
41 | #define restore_irq(level) \ | 41 | #define restore_irq(level) \ |
42 | ((void)set_irq_level(level)) | 42 | ((void)set_irq_level(level)) |
43 | 43 | ||
44 | #include "system-hosted.h" | ||
45 | |||
44 | void sim_enter_irq_handler(void); | 46 | void sim_enter_irq_handler(void); |
45 | void sim_exit_irq_handler(void); | 47 | void sim_exit_irq_handler(void); |
46 | void sim_kernel_shutdown(void); | 48 | void sim_kernel_shutdown(void); |
@@ -48,17 +50,10 @@ void sys_poweroff(void); | |||
48 | void sys_handle_argv(int argc, char *argv[]); | 50 | void sys_handle_argv(int argc, char *argv[]); |
49 | void gui_message_loop(void); | 51 | void gui_message_loop(void); |
50 | void sim_do_exit(void) NORETURN_ATTR; | 52 | void sim_do_exit(void) NORETURN_ATTR; |
51 | #ifndef HAVE_SDL_THREADS | ||
52 | void wait_for_interrupt(void); | ||
53 | #endif | ||
54 | 53 | ||
55 | extern bool background; /* True if the background image is enabled */ | 54 | extern bool background; /* True if the background image is enabled */ |
56 | extern bool showremote; | 55 | extern bool showremote; |
57 | extern int display_zoom; | 56 | extern int display_zoom; |
58 | extern long start_tick; | 57 | extern long start_tick; |
59 | 58 | ||
60 | static inline void commit_dcache(void) {} | ||
61 | static inline void commit_discard_dcache(void) {} | ||
62 | static inline void commit_discard_idcache(void) {} | ||
63 | |||
64 | #endif /* _SYSTEM_SDL_H_ */ | 59 | #endif /* _SYSTEM_SDL_H_ */ |