summaryrefslogtreecommitdiff
path: root/firmware/export/kernel.h
AgeCommit message (Collapse)Author
2007-11-03Accept FS#7910: spontaneously speak out the battery level when it fallsStéphane Doyon
under 50%, 30% and 15%. Guarded by an option under voice settings. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15422 a1c6a512-1295-4272-9138-f99709370657
2007-10-27Add queue_peek to the kernel (written by Mike Sevakis), and use it to ↵Nicolas Pennequin
improve upon my previous commit. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15336 a1c6a512-1295-4272-9138-f99709370657
2007-10-16Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis
towards the possibility of other types. All SVN targets the low-lag code to speed up blocking operations. Most files are modified here simple due to a name change to actually support a real event object and a param change to create_thread. Add some use of new features but just sit on things for a bit and leave full integration for later. Work will continue on to address size on sensitive targets and simplify things if possible. Any PP target having problems with SWP can easily be changed to sw corelocks with one #define change in config.h though only PP5020 has shown an issue and seems to work without any difficulties. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15134 a1c6a512-1295-4272-9138-f99709370657
2007-10-08Make sure that audio_resume() is not called in interrupt context when car ↵Linus Nielsen Feltzing
adapter mode is enabled. Fixes FS#7304. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15034 a1c6a512-1295-4272-9138-f99709370657
2007-09-28Commit a subset of the dual core changes that have to do with cache ↵Michael Sevakis
handling, stacks, firmware startup and thread startup. Tested on e200, H10-20GB, iPod Color and 5.5G. Thread function return implemented for all targets. Some changes to plugins to follow shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14879 a1c6a512-1295-4272-9138-f99709370657
2007-09-21Merge the Gigabeat S branch back into trunk. Fingers crossed nothing breaks.Will Robertson
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14805 a1c6a512-1295-4272-9138-f99709370657
2007-09-09UISIMULATOR: Give the host OS some needed context switching hints (which ↵Michael Sevakis
_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
2007-07-29Add a new timeout API to the kernel. Enable only for e200 right now since ↵Michael Sevakis
it's the only user. Use that as the one-shot delay for SD card inserts. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14049 a1c6a512-1295-4272-9138-f99709370657
2007-07-28Fix warnings and errors. Remove some added stuff that wasn't needed afterall.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14036 a1c6a512-1295-4272-9138-f99709370657
2007-07-28Scroll on main and remote with a single thread. Change the way system ↵Michael Sevakis
messages are defined before running out is an issue (which requires a full update of rockbox on the player). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@14035 a1c6a512-1295-4272-9138-f99709370657
2007-06-30Accept FS#7134 - Sansa: external sd card support by Antonius Hellmann with ↵Michael Sevakis
some tweaks. All testers have given the green light. (Now for the RED ?? ;). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13741 a1c6a512-1295-4272-9138-f99709370657
2007-06-25current_tick really does need to be volatile since gcc can optimize away ↵Michael Sevakis
checking the value otherwise - found out the hard way. :) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13715 a1c6a512-1295-4272-9138-f99709370657
2007-03-26Make scheduler functions thread safe core wise. A big step towards playback ↵Miika Pekkarinen
running on COP (not yet possible because more protection on file system level is necessary). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12926 a1c6a512-1295-4272-9138-f99709370657
2007-03-21Update sync queues to use a statically allocated return value in order to ↵Michael Sevakis
facilitate upcoming COP updates. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12881 a1c6a512-1295-4272-9138-f99709370657
2007-03-11Optimized the gui list code performance, including automatic frame dropping ↵Miika Pekkarinen
and cpu boosting when button events are getting queued. Improved scrollwheel acceleration code is needed to notice a real change. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12721 a1c6a512-1295-4272-9138-f99709370657
2007-03-09As usual I left experimental stuff in a file. Forgot to add that ↵Michael Sevakis
set_irq_level_and_block thread is per core now too. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12689 a1c6a512-1295-4272-9138-f99709370657
2007-03-09Put an end to priority inversion in the ata driver. Gave up trying to have ↵Michael Sevakis
fully atomic dual use mutexes so just replaced the ata driver locking with spins. Maybe I'll have better luck later. Things should run smoothly with database updates and such happening in the background. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12688 a1c6a512-1295-4272-9138-f99709370657
2006-12-19Convert queues to use intptr_t for event data and return values as most of ↵Michael Sevakis
the time pointer are not passed and it should make some things a bit cleaner. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11818 a1c6a512-1295-4272-9138-f99709370657
2006-12-16Goofed some preprocessor stuff finalizing things.Michael Sevakis
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11777 a1c6a512-1295-4272-9138-f99709370657
2006-12-16Add queue_send synchronous message sending. Right now only for SWCODEC. ↵Michael Sevakis
Actual usage to be added to playback and recording shortly in upcoming commits. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11776 a1c6a512-1295-4272-9138-f99709370657
2006-11-22Change if CONFIG_CPU==PP50XX to ifdef CPU_PP where appropriateDaniel Ankers
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11569 a1c6a512-1295-4272-9138-f99709370657
2006-10-19Patch #6052 - More responsive skip on ArchosLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11273 a1c6a512-1295-4272-9138-f99709370657
2006-09-26Patch #4899 by Robert Keevil - Automatic pause on iPod when removing the ↵Linus Nielsen Feltzing
headphones git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11057 a1c6a512-1295-4272-9138-f99709370657
2006-09-16New scheduler, with priorities for swcodec platforms. Frequent taskMiika Pekkarinen
switching should be more efficient and tasks are stored in linked lists to eliminate unnecessary task switching to improve performance. Audio should no longer skip on swcodec targets caused by too CPU hungry UI thread or background threads. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10958 a1c6a512-1295-4272-9138-f99709370657
2006-03-05Fix other yellow buildsBrandon Low
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8914 a1c6a512-1295-4272-9138-f99709370657
2006-02-05More iPod 3G changes from Seven Le Mesle, and some unification of the iPod ↵Dave Chapman
code from me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8581 a1c6a512-1295-4272-9138-f99709370657
2006-01-23New kernel function, queue_delete(struct event_queue *q)Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8424 a1c6a512-1295-4272-9138-f99709370657
2006-01-05iPod: Fix the bootloader so it can load and run the original Apple firmware ↵Dave Chapman
again. The Rockbox firmware was doing too much to the hardware so we remove most of the initialisation. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8301 a1c6a512-1295-4272-9138-f99709370657
2005-12-12Add interrupt handler for iPod. Add timer tick support. Remove temporary ↵Thom Johansen
thread sleep solution. Remove temporary iPod current_tick solution. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8224 a1c6a512-1295-4272-9138-f99709370657
2005-11-23Increased number of possible tick tasks.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8050 a1c6a512-1295-4272-9138-f99709370657
2005-11-19iPod: Make current_tick signedDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8003 a1c6a512-1295-4272-9138-f99709370657
2005-11-07Initial commit of work-in-progress iPod portDave Chapman
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7781 a1c6a512-1295-4272-9138-f99709370657
2005-06-22Increased max number of tick tasksLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6804 a1c6a512-1295-4272-9138-f99709370657
2005-06-08Hot-plug support for iriver remote.Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6625 a1c6a512-1295-4272-9138-f99709370657
2005-04-06Added the IS_SYSEVENT() macroLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6256 a1c6a512-1295-4272-9138-f99709370657
2005-04-06Moved the car adapter mode handling to apps/, now every thread gets ↵Linus Nielsen Feltzing
SYS_CHARGER_CONNECTED and SYS_CHARGER_DISCONNECTED events git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6255 a1c6a512-1295-4272-9138-f99709370657
2005-03-01Export tick_start() to allow for tick timer reinit when changing CPU frequencyLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6092 a1c6a512-1295-4272-9138-f99709370657
2005-02-22Build cleanup and general fixes. fprintf() is now fdprintf(), the separationDaniel Stenberg
between uisimulator files and firmware/apps files are better done. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6031 a1c6a512-1295-4272-9138-f99709370657
2005-01-30long policyJean-Philippe Bernardy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5716 a1c6a512-1295-4272-9138-f99709370657
2005-01-28do the hotswapJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5702 a1c6a512-1295-4272-9138-f99709370657
2005-01-24More int -> longJean-Philippe Bernardy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5654 a1c6a512-1295-4272-9138-f99709370657
2005-01-10Jean-Philippe Bernardy: fixed to use long for 32 bit valuesDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5555 a1c6a512-1295-4272-9138-f99709370657
2004-10-12SYS_xxx events now don't share bits with regular events. New event: ↵Linus Nielsen Feltzing
SYS_POWEROFF. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5257 a1c6a512-1295-4272-9138-f99709370657
2004-10-10First part of MMC hotswap handling; removed unnecessary MMC threadJens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5241 a1c6a512-1295-4272-9138-f99709370657
2004-09-01Made queue_clear() atomic, and made the argument non-constLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5032 a1c6a512-1295-4272-9138-f99709370657
2004-09-01New kernel function: queue_clear()Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5029 a1c6a512-1295-4272-9138-f99709370657
2004-08-16Const policed pointer arguments to functions, part 1Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4995 a1c6a512-1295-4272-9138-f99709370657
2004-02-25The cli()/sti() functions are not safe. We should have removed them long ago.Linus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4314 a1c6a512-1295-4272-9138-f99709370657
2003-02-07Include File Cleanup And Move-Around Party 2003.Daniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3213 a1c6a512-1295-4272-9138-f99709370657