diff options
author | Daniel Ankers <dan@weirdo.org.uk> | 2007-03-04 20:06:41 +0000 |
---|---|---|
committer | Daniel Ankers <dan@weirdo.org.uk> | 2007-03-04 20:06:41 +0000 |
commit | 82f9056988331572e01231d70fadc64b7ab76c6f (patch) | |
tree | 9f1d33b904516fd5eeac2067e4afb32ce5e990df /uisimulator | |
parent | 74e572c9d600247ee795b206da3715f6af442a25 (diff) | |
download | rockbox-82f9056988331572e01231d70fadc64b7ab76c6f.tar.gz rockbox-82f9056988331572e01231d70fadc64b7ab76c6f.zip |
Dual core support for PP502x players (iPod G4 and later, iriver h10, Sansa - iPod G3 will be coming soon.) This allows threads to be run on either core provided that all communications between the cores is done using uncached memory. There should be no significant change in battery life from doing this. Documentation (on the RockboxKernel wiki page) will follow shortly.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12601 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r-- | uisimulator/common/stubs.c | 6 | ||||
-rw-r--r-- | uisimulator/sdl/thread-sdl.c | 6 |
2 files changed, 0 insertions, 12 deletions
diff --git a/uisimulator/common/stubs.c b/uisimulator/common/stubs.c index a993a9e0e8..8ea46824ce 100644 --- a/uisimulator/common/stubs.c +++ b/uisimulator/common/stubs.c | |||
@@ -258,12 +258,6 @@ void remove_thread(int threadnum) | |||
258 | (void)threadnum; | 258 | (void)threadnum; |
259 | } | 259 | } |
260 | 260 | ||
261 | void remove_thread_on_core(unsigned int core, int threadnum) | ||
262 | { | ||
263 | (void)core; | ||
264 | (void)threadnum; | ||
265 | } | ||
266 | |||
267 | /* assure an unused place to direct virtual pointers to */ | 261 | /* assure an unused place to direct virtual pointers to */ |
268 | #define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */ | 262 | #define VIRT_SIZE 0xFFFF /* more than enough for our string ID range */ |
269 | unsigned char vp_dummy[VIRT_SIZE]; | 263 | unsigned char vp_dummy[VIRT_SIZE]; |
diff --git a/uisimulator/sdl/thread-sdl.c b/uisimulator/sdl/thread-sdl.c index 041ca3153d..21697699a5 100644 --- a/uisimulator/sdl/thread-sdl.c +++ b/uisimulator/sdl/thread-sdl.c | |||
@@ -75,12 +75,6 @@ int create_thread(void (*fp)(void), void* sp, int stk_size) | |||
75 | return 0; | 75 | return 0; |
76 | } | 76 | } |
77 | 77 | ||
78 | int create_thread_on_core(void (*core)(void), void (*fp)(void), void* sp, int stk_size) | ||
79 | { | ||
80 | (void)core; | ||
81 | return create_thread(fp, sp, stk_size); | ||
82 | } | ||
83 | |||
84 | void init_threads(void) | 78 | void init_threads(void) |
85 | { | 79 | { |
86 | m = SDL_CreateMutex(); | 80 | m = SDL_CreateMutex(); |