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 /apps/plugin.h | |
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 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 48e9c40196..1d161783a1 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -327,7 +327,8 @@ struct plugin_api { | |||
327 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); | 327 | long (*default_event_handler_ex)(long event, void (*callback)(void *), void *parameter); |
328 | struct thread_entry* (*create_thread)(void (*function)(void), void* stack, | 328 | struct thread_entry* (*create_thread)(void (*function)(void), void* stack, |
329 | int stack_size, const char *name | 329 | int stack_size, const char *name |
330 | IF_PRIO(, int priority)); | 330 | IF_PRIO(, int priority) |
331 | IF_COP(, unsigned int core, bool fallback)); | ||
331 | void (*remove_thread)(struct thread_entry *thread); | 332 | void (*remove_thread)(struct thread_entry *thread); |
332 | void (*reset_poweroff_timer)(void); | 333 | void (*reset_poweroff_timer)(void); |
333 | #ifndef SIMULATOR | 334 | #ifndef SIMULATOR |
@@ -595,11 +596,6 @@ struct plugin_api { | |||
595 | void (*pcm_record_more)(void *start, size_t size); | 596 | void (*pcm_record_more)(void *start, size_t size); |
596 | #endif | 597 | #endif |
597 | 598 | ||
598 | struct thread_entry*(*create_thread_on_core)( | ||
599 | unsigned int core, void (*function)(void), | ||
600 | void* stack, int stack_size, | ||
601 | const char *name IF_PRIO(, int priority)); | ||
602 | |||
603 | #ifdef IRIVER_H100_SERIES | 599 | #ifdef IRIVER_H100_SERIES |
604 | /* Routines for the iriver_flash -plugin. */ | 600 | /* Routines for the iriver_flash -plugin. */ |
605 | bool (*detect_original_firmware)(void); | 601 | bool (*detect_original_firmware)(void); |