summaryrefslogtreecommitdiff
path: root/firmware/export/kernel.h
diff options
context:
space:
mode:
authorMichael Sevakis <jethead71@rockbox.org>2007-09-09 01:59:07 +0000
committerMichael Sevakis <jethead71@rockbox.org>2007-09-09 01:59:07 +0000
commit0107dfc8276d73744bb097d643809205ef21d97b (patch)
tree17d434f51652d949d8167abaf85fe0eacd33612a /firmware/export/kernel.h
parent424750ea95409c6e78188aa47fe7a0f47d1127cb (diff)
downloadrockbox-0107dfc8276d73744bb097d643809205ef21d97b.tar.gz
rockbox-0107dfc8276d73744bb097d643809205ef21d97b.zip
UISIMULATOR: Give the host OS some needed context switching hints (which _is_ supposed to work on Linux - but I can't tell on VMWare - and does on Windows). I guess I'll know for sure soon. Give sleep() even more genuine behavior. Add some button driver sync with the rockbox threads that should have been there for some time - this is basically interrupt-like processing as any thread not in the kernel pool should be considered. Make the screendump work again by posting the request. Perhaps help out shutting down for some users but not in the way I'd prefer - to think about.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14646 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/export/kernel.h')
-rw-r--r--firmware/export/kernel.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/firmware/export/kernel.h b/firmware/export/kernel.h
index bf5a9d10c3..9ada8eb59c 100644
--- a/firmware/export/kernel.h
+++ b/firmware/export/kernel.h
@@ -41,6 +41,7 @@
41#define SYS_EVENT_CLS_POWER 2 41#define SYS_EVENT_CLS_POWER 2
42#define SYS_EVENT_CLS_FILESYS 3 42#define SYS_EVENT_CLS_FILESYS 3
43#define SYS_EVENT_CLS_PLUG 4 43#define SYS_EVENT_CLS_PLUG 4
44#define SYS_EVENT_CLS_MISC 5
44/* make sure SYS_EVENT_CLS_BITS has enough range */ 45/* make sure SYS_EVENT_CLS_BITS has enough range */
45 46
46/* Bit 31->|S|c...c|i...i| */ 47/* Bit 31->|S|c...c|i...i| */
@@ -68,6 +69,7 @@
68#define SYS_PHONE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 3) 69#define SYS_PHONE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 3)
69#define SYS_REMOTE_PLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 4) 70#define SYS_REMOTE_PLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 4)
70#define SYS_REMOTE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 5) 71#define SYS_REMOTE_UNPLUGGED MAKE_SYS_EVENT(SYS_EVENT_CLS_PLUG, 5)
72#define SYS_SCREENDUMP MAKE_SYS_EVENT(SYS_EVENT_CLS_MISC, 0)
71 73
72struct event 74struct event
73{ 75{