summaryrefslogtreecommitdiff
path: root/firmware/export/system.h (follow)
Commit message (Collapse)AuthorAge
...
* Fix undefined BIT_N on non-SH targets.Andrew Mahone2009-06-06
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21196 a1c6a512-1295-4272-9138-f99709370657
* Add a system-wide BIT_N macro, implemented via an LUT on SH, and use it in ↵Andrew Mahone2009-06-06
| | | | | | the TAGCACHE_IS_* macros in place of per-set LUTs, removing duplication of data between those LUTs and the mask values used on other targets. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21195 a1c6a512-1295-4272-9138-f99709370657
* Make basic cache functions into calls, and get rid of ↵Michael Sevakis2009-02-11
| | | | | | CACHE_FUNCTION_WRAPPERS and CACHE_FUNCTIONS_AS_CALL macros. Rename flush/invalidate_icache to cpucache_flush/invalidate. They're inlined only if an implementation isn't provided by defining HAVE_CPUCACHE_FLUSH/INVALIDATE. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19971 a1c6a512-1295-4272-9138-f99709370657
* Accept FS#9717 by Akio Idehara with a small change suggested by Rafaël ↵Nils Wallménius2009-01-24
| | | | | | Carré avoiding simulator warnings about redefining endianness switching macros git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19843 a1c6a512-1295-4272-9138-f99709370657
* remove align_buffer from firmare/general.c, replacing with ALIGN_BUFFER ↵Andrew Mahone2009-01-13
| | | | | | | | | macro, and replace all uses of it (only resize.c in core, and pictureflow and mpegplayer plugins), remove it from plugin_api, and remove wrapper for it from plugin.h git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19758 a1c6a512-1295-4272-9138-f99709370657
* Clean up panicf and introduce system_exception_wait to do further target ↵Michael Sevakis2009-01-08
| | | | | | tasks and wait for a button when an unrecoverable error has occurred (panic, UIE, etc.). Returning from that function should reboot or don't return from it. Move UIE and __div0 for ARM to its own file. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19716 a1c6a512-1295-4272-9138-f99709370657
* Macros should be ALL CAPS, so rename (un)likely() to (UN)LIKELY()Nils Wallménius2008-11-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19181 a1c6a512-1295-4272-9138-f99709370657
* Introduce likely() and unlikely() macros, use to give gcc hints about which ↵Nils Wallménius2008-11-20
| | | | | | branch is likely to be taken in a conditional, use them in the midi player for a small speedup, use instead of similar EXPECT macros in tremor and use in mpegplayer git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19162 a1c6a512-1295-4272-9138-f99709370657
* Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg2008-06-28
| | | | | | | | | later. We still need to hunt down snippets used that are not. 1324 modified files... http://www.rockbox.org/mail/archive/rockbox-dev-archive-2008-06/0060.shtml git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17847 a1c6a512-1295-4272-9138-f99709370657
* remove leftover debug stuffMarcoen Hirschberg2008-06-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17820 a1c6a512-1295-4272-9138-f99709370657
* initial Meizu M6SL port (take 2)Marcoen Hirschberg2008-06-27
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17819 a1c6a512-1295-4272-9138-f99709370657
* Add a complete priority inheritance implementation to the scheduler (all ↵Michael Sevakis2008-03-25
| | | | | | mutex ownership and queue_send calls are inheritable). Priorities are differential so that dispatch depends on the runnable range of priorities. Codec priority can therefore be raised in small steps (pcmbuf updated to enable). Simplify the kernel functions to ease implementation and use the same kernel.c for both sim and target (I'm tired of maintaining two ;_). 1) Not sure if a minor audio break at first buffering issue will exist on large-sector disks (the main mutex speed issue was genuinely resolved earlier). At this point it's best dealt with at the buffering level. It seems a larger filechunk could be used again. 2) Perhaps 64-bit sims will have some minor issues (finicky) but a backroll of the code of concern there is a 5-minute job. All kernel objects become incompatible so a full rebuild and update is needed. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16791 a1c6a512-1295-4272-9138-f99709370657
* mpegplayer: Make playback engine fully seekable and frame-accurate and split ↵Michael Sevakis2007-12-29
| | | | | | into logical parts. Be sure to have all current features work. Actual UI for seeking will be added soon. Recommended GOP size is about 15-30 frames depending on target or seeking can be slow with really long GOPs (nature of MPEG video). More refined encoding recommendations for a particular player should be posted soon. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15977 a1c6a512-1295-4272-9138-f99709370657
* Add some CACHEALIGN_* macros and a helper function to assist in aligning ↵Michael Sevakis2007-11-08
| | | | | | data and buffers on PortalPlayer processors to cache line boundaries. They're noops when PROC_NEED_CACHEALIGN isn't defined. Go safe and increase the value to 32 since I'm not sure yet if 16 is sufficient - changing that is a one-liner. Add helper to plugin API which will be needed shortly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15523 a1c6a512-1295-4272-9138-f99709370657
* Finally full multicore support for PortalPlayer 502x targets with an eye ↵Michael Sevakis2007-10-16
| | | | | | 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
* Messages queues must be guarded on both ends or else it's a race between ↵Michael Sevakis2007-05-12
| | | | | | detecting a message present and missing a wakeup on thread about to wait. Keeping IRQs from interacting with the scheduler would be preferable but this should do at the moment. Add more detailed panic info regarding blocking violations so we know who. Make panicf function well enough on Gigabeat and PortalPlayer targets. Move the core sleep instructions into a CPU-specific inline to keep thing organized. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13374 a1c6a512-1295-4272-9138-f99709370657
* Portal Player: Add invalidate_icache and flush_icache. Flush the cache on ↵Michael Sevakis2007-04-13
| | | | | | the core for newborn threads. In doing so, move more ARM stuff to the target tree and organize it to make a clean job of it. If anything isn't appropriate for some particular device give a hollar or even just fix it by some added #ifdefing. I was informed that the PP targets are register compatible so I'm going off that advice. The Sansa likes it though. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13144 a1c6a512-1295-4272-9138-f99709370657
* Moved SH1 system code to target tree. * First shot at hwcompat cleanup.Jens Arnold2007-04-11
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13114 a1c6a512-1295-4272-9138-f99709370657
* Fix the rest of them I hope.Michael Sevakis2007-03-29
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12958 a1c6a512-1295-4272-9138-f99709370657
* Add an asm swap_odd_even32 to SH and ARM. Have the byteswapping functions ↵Michael Sevakis2007-03-29
| | | | | | take and return intxx_t data types. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12956 a1c6a512-1295-4272-9138-f99709370657
* Make scheduler functions thread safe core wise. A big step towards playback ↵Miika Pekkarinen2007-03-26
| | | | | | 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
* PNX0101 changes:Tomasz Malesinski2007-03-24
| | | | | | | | | | Make PNX0101-specific system.c and crt0.S. Add new register names from LPC2880 user manual. Add support for timer. Enable CPU frequency changing. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12904 a1c6a512-1295-4272-9138-f99709370657
* Fix red builds and make udelay actually work as it should again.Barry Wardell2007-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12703 a1c6a512-1295-4272-9138-f99709370657
* Make udelay() wrap-safe.Barry Wardell2007-03-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12702 a1c6a512-1295-4272-9138-f99709370657
* Fix broken buildsJonathan Gordon2007-01-22
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12088 a1c6a512-1295-4272-9138-f99709370657
* Simple cpu boost tracker for LOGF builds. Shows the last 64 cpu_boost() ↵Jonathan Gordon2007-01-22
| | | | | | calls from the debug menu git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12087 a1c6a512-1295-4272-9138-f99709370657
* add cpu frequency scaling to the gigabeat. default/normal: 100MHz, boosted: ↵Marcoen Hirschberg2007-01-16
| | | | | | 300MHz git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12023 a1c6a512-1295-4272-9138-f99709370657
* Prepare core support for the iriver bootloader supporting ROM imagesMiika Pekkarinen2007-01-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11991 a1c6a512-1295-4272-9138-f99709370657
* Move invalidate_icache macro to function in GB target tree, GB onlyGreg White2007-01-04
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11908 a1c6a512-1295-4272-9138-f99709370657
* Split the enable_fiq(fiq_handler) function into separate ↵Dave Chapman2007-01-01
| | | | | | set_fiq_handler(fiq_handler) and enable_fiq(void) functions. This allows temporary disabling of the FIQ without knowing which fiq handler is in use. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11875 a1c6a512-1295-4272-9138-f99709370657
* FS#6096. Recording on PortalPlayer targets (H10, iPod Video, iPod 4g, iPod ↵Barry Wardell2006-12-18
| | | | | | | | | | | | | | | | | | | | Color, iPod Nano). * Fix failed compile of enc_config.c when HAVE_MPEG2_SAMPR is not defined. * Fix bug in AIFF encoder header creation on little endian targets. * Add recording screen keymaps for H10 and iPod. * Move pcm_playback PP specific code to target tree. * Add recording code to wmcodec drivers. * Add pcm_record code. Some problems still remain: * Playback doesn't work after recording until Rockbox is restarted. * Gain control not implemented. * Only 16-bit/44KHz for now. The hardware should be capable of up to 24-bit/96KHz. * Line-in recording not tested on H10. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11794 a1c6a512-1295-4272-9138-f99709370657
* Removed the cpu boost tracking debug feature for now because ofMiika Pekkarinen2006-12-05
| | | | | | | different kind of problems. Better implementation can be done later. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11665 a1c6a512-1295-4272-9138-f99709370657
* Removed the Gmini 120 and Gmini SP code. These ports are dead, unfortunately.Jens Arnold2006-11-10
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11504 a1c6a512-1295-4272-9138-f99709370657
* Big Patch adds primarily: Samplerate and format selection to recording for ↵Michael Sevakis2006-11-06
| | | | | | SWCODEC. Supprort for samplerates changing in playback (just goes with the recording part inseparably). Samplerates to all encoders. Encoders can be configured individually on a menu specific to the encoder in the recording menu. File creation is delayed until flush time to reduce spinups when splitting. Misc: statusbar icons for numbers are individual digits to display any number. Audio buffer was rearranged to maximize memory available to recording and properly reinitialized when trashed. ColdFire PCM stuff moved to target tree to avoid a complicated mess when adding samplerate switching. Some needed API changes and to neaten up growing gap between hardware and software codecs. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11452 a1c6a512-1295-4272-9138-f99709370657
* Moved coldfire code in system.c and system.h into target tree.Michael Sevakis2006-10-30
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11399 a1c6a512-1295-4272-9138-f99709370657
* ...and tidy upSteve Bavin2006-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11127 a1c6a512-1295-4272-9138-f99709370657
* Oops; second bad commit. Three strikes and I'm out I guess.Steve Bavin2006-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11126 a1c6a512-1295-4272-9138-f99709370657
* Add CPU boost tracker to see where boosts are coming fromSteve Bavin2006-10-05
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11125 a1c6a512-1295-4272-9138-f99709370657
* Threading changes in preparation for multiple core supportDaniel Ankers2006-08-21
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10681 a1c6a512-1295-4272-9138-f99709370657
* Initial support and use for EEPROM memory on H120 & H140 players whenMiika Pekkarinen2006-08-05
| | | | | | | | | Rockbox firmware has been flashed over original firmware (not yet possible to do). Dircache & tagcache serialization for fast bootup without the need to scan disk when Rockbox is in flash. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10464 a1c6a512-1295-4272-9138-f99709370657
* better PP checksDaniel Stenberg2006-08-03
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10433 a1c6a512-1295-4272-9138-f99709370657
* Don't paste when sleepy, kids.Thom Johansen2006-03-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9075 a1c6a512-1295-4272-9138-f99709370657
* Assembler optimised swap32 for ARM.Thom Johansen2006-03-17
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9072 a1c6a512-1295-4272-9138-f99709370657
* CPU boosting support for ipod nano and video. The rest of the targetsThom Johansen2006-03-17
| | | | | | | are either untested or do not work with the current code. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9070 a1c6a512-1295-4272-9138-f99709370657
* iPod: Re-written audio driver. This brings it in line with changes to pcm ↵Dave Chapman2006-02-07
| | | | | | playback system, and also appears to fix all the ipod-specific playback glitches git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8614 a1c6a512-1295-4272-9138-f99709370657
* More iPod 3G changes from Seven Le Mesle, and some unification of the iPod ↵Dave Chapman2006-02-05
| | | | | | code from me git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8581 a1c6a512-1295-4272-9138-f99709370657
* iPod: Fix the detection of lcd type for the iPod Photo - this should fix ↵Dave Chapman2006-01-31
| | | | | | problems with that LCD. Affected users also need to install a new bootloader - available from the iPod Installation wiki page. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8499 a1c6a512-1295-4272-9138-f99709370657
* iPod: First working audio driverDave Chapman2006-01-28
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8474 a1c6a512-1295-4272-9138-f99709370657
* Stricter asm constraint is required.Brandon Low2006-01-19
| | | | | | | (Prevent breakage with future compilers) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8379 a1c6a512-1295-4272-9138-f99709370657
* Work-in-progress iriver iFP-7xx port by Tomasz MalesinskiDave Chapman2006-01-12
| | | | git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8342 a1c6a512-1295-4272-9138-f99709370657