rockbox/firmware/asm
Michael Sevakis 6ed00870ab Base scheduler queues off linked lists and do cleanup/consolidation
Abstracts threading from itself a bit, changes the way its queues are
handled and does type hiding for that as well.

Do alot here due to already required major brain surgery.

Threads may now be on a run queue and a wait queue simultaneously so
that the expired timer only has to wake the thread but not remove it
from the wait queue which simplifies the implicit wake handling.

List formats change for wait queues-- doubly-linked, not circular.
Timeout queue is now singly-linked. The run queue is still circular
as before.

Adds a better thread slot allocator that may keep the slot marked as
used regardless of the thread state. Assists in dumping special tasks
that switch_thread was tasked to perform (blocking tasks).

Deletes alot of code yet surprisingly, gets larger than expected.
Well, I'm not not minding that for the time being-- omlettes and break
a few eggs and all that.

Change-Id: I0834d7bb16b2aecb2f63b58886eeda6ae4f29d59
2014-08-16 05:15:37 -04:00
..
arm Do some kernel cleanup 2014-08-08 01:59:59 -04:00
m68k Base scheduler queues off linked lists and do cleanup/consolidation 2014-08-16 05:15:37 -04:00
mips Move optimized ffs to firmware/asm, using the new automatic-asm-picking infrastructure. 2012-01-22 18:46:45 +01:00
sh Revert "SH gcc 4.6.3 with link-time optimization, for Archos targets" 2012-10-24 14:05:39 +02:00
asm.make Apparently make doesn't like inline comments 2012-03-28 23:14:39 +02:00
beep.c beep/mixer code: Code police a bit. 2012-02-19 00:38:58 -05:00
corelock.c kernel: Break out kernel primitives into separate files and move to separate dir. 2014-03-03 18:11:57 +01:00
ffs.c Generic find_first_set_bit can use __builtin_ctz instead of __builtin_ffs 2012-02-04 18:08:17 -05:00
lcd-as-memframe-24bit.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
lcd-as-memframe.c lcd-24bit: Introduce a 24-bit mid-level LCD driver 2014-06-21 00:15:53 +02:00
memcpy.c Move optimized memcpy and friends and strlen to firmware/asm, 2012-01-22 18:46:45 +01:00
memmove.c Move optimized memcpy and friends and strlen to firmware/asm, 2012-01-22 18:46:45 +01:00
memset.c Move optimized memcpy and friends and strlen to firmware/asm, 2012-01-22 18:46:45 +01:00
memset16.c Move optimized memcpy and friends and strlen to firmware/asm, 2012-01-22 18:46:45 +01:00
pcm-mixer.c Coldfire: Optimize emac context save/restore in mixer ISR. 2012-03-12 00:16:12 +01:00
SOURCES zen/zenxfi: switch lcd driver to 24-bit mode 2014-06-24 18:07:55 +02:00
strlen.c Move optimized memcpy and friends and strlen to firmware/asm, 2012-01-22 18:46:45 +01:00
thread-unix.c Create fimrware/asm directory for assembly optimized stuff. 2012-01-22 18:46:44 +01:00
thread-win32.c Create fimrware/asm directory for assembly optimized stuff. 2012-01-22 18:46:44 +01:00
thread.c Rearrange #ifdefs a bit, so SIGALTSTACK overrides CPU-specific threading. 2012-06-11 22:27:41 +02:00
thread.h Hosted builds using thread.c have errno as thread context. 2014-08-05 22:05:20 -04:00