summaryrefslogtreecommitdiff
path: root/firmware/test
AgeCommit message (Collapse)Author
2014-01-03Make fat test tool build again, and make its sector size configurable.Frank Gevaerts
Change-Id: Icfe7c4bb880c2f10918a7809f0f1f1c3838f6f48
2013-08-17Cleanup MV/MD macros a little.Michael Sevakis
When using variadic macros there's no need for IF_MD2/IF_MV2 to deal with function parameters. IF_MD/IF_MV are enough. Throw in IF_MD_DRV/ID_MV_VOL that return the parameter if MD/MV, or 0 if not. Change-Id: I7605e6039f3be19cb47110c84dcb3c5516f2c3eb
2012-05-08Fix test fat failing on 64bit system (second bit of FS#12646)Marcin Bukat
We use unsigned long/long in number of places in fat.c. When this is used to cast 32bit fat field it fails on 64bit systems. This patch introduces explicit types (uint16_t, uint32_t) only in places which influence how fat structures are interpreted. Change-Id: I0be44d0b355f9de20b4deb221698d095f55d4bde Reviewed-on: http://gerrit.rockbox.org/232 Reviewed-by: Frank Gevaerts <frank@gevaerts.be> Reviewed-by: Torne Wuff <torne@wolfpuppy.org.uk>
2012-05-08Fix fat test program not compiling (FS#12646).Marcin Bukat
This changes the way creat() is wrapped around in native builds so more experienced devs should look at it. This patch forces to compile fat test in 32bit mode. Building natively on x86-64 works just fine but our fat code apparently can't deal with 64bit pointers/ints correctly. Change-Id: I000015094f7db957ce826c22672608cd419908b0 Reviewed-on: http://gerrit.rockbox.org/228 Reviewed-by: Thomas Martitz <kugel@rockbox.org>
2011-12-18Add KEEP() around vectors in linker scripts.Boris Gjenero
Vectors are needed by the CPU, but they don't need to be accessed by Rockbox. Without the KEEP(), they can be removed when liking with --gc-sections, creating a broken binary without any warnings. This tells the linker to not remove them. It should enable use of --gc-sections for all targets. When not using --gc-sections, this does not change the binary. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31351 a1c6a512-1295-4272-9138-f99709370657
2011-02-28Added dummy autoconf.h for fat test.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29457 a1c6a512-1295-4272-9138-f99709370657
2011-02-28Made the fat test code compile again.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29456 a1c6a512-1295-4272-9138-f99709370657
2011-02-14All kernel objects in code shared amongs targets (core, plugins, codecs) ↵Michael Sevakis
should be declared SHAREDBSS_ATTR as any core could potentially touch them even though they seem only to involve threads on one core. The exception is target code for particular CPUs where proper allocation is fixed. playlist.c was a little odd too-- use one mutex for the current playlist and a separate one for created playlists (still pondering the necessity of more than one). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29305 a1c6a512-1295-4272-9138-f99709370657
2010-12-27Redo r28026 so that all .S files get the __ASSEMBLER__ define.Thomas Martitz
Patch by Thomas Jarosch. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28913 a1c6a512-1295-4272-9138-f99709370657
2010-10-31Separate mas35xx lowlevel stuff. Move SH specific bits to target tree. ↵Marcin Bukat
FS#11189 by me. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28425 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Move c/h files implementing/defining standard library stuff into a new libc ↵Thomas Martitz
directory, also standard'ify some parts of the code base (almost entirely #include fixes). This is to a) to cleanup firmware/common and firmware/include a bit, but also b) for Rockbox as an application which should use the host system's c library and headers, separating makes it easy to exclude our files from the build. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25850 a1c6a512-1295-4272-9138-f99709370657
2010-05-06Make open() posix compliant api-wise. A few calls (those with O_CREAT) need ↵Thomas Martitz
the additional optional mode parameter so add it. Impact for the core is almost zero, as open() is a wrapper macro for the real open function which doesn't take the variable parameter. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25844 a1c6a512-1295-4272-9138-f99709370657
2010-01-03Fix even more tabsAndree Buschmann
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24155 a1c6a512-1295-4272-9138-f99709370657
2009-07-17Commit FS#9545, storage cleanup and multi-driver supportFrank Gevaerts
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21933 a1c6a512-1295-4272-9138-f99709370657
2009-03-04Cosmetic fix: remove duplicate semicolonsBertrik Sikken
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@20198 a1c6a512-1295-4272-9138-f99709370657
2008-12-04Added keymaps for ZVM to plugins. Enabled zvm plugin building in ↵Björn Stenberg
tools/configure. FS#9605 by Adam Hogan and Robert Menes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19335 a1c6a512-1295-4272-9138-f99709370657
2008-06-28Updated our source code header to explicitly mention that we are GPL v2 orDaniel Stenberg
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
2008-03-26Do core interrupt masking in a less general fashion and save some ↵Michael Sevakis
instructions to decrease size and speed things up a little bit. Small fix to a few places where interrupts would get enabled again where they shouldn't have been (context switching calls when disabled). git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16811 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-01-09Removed second testBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11969 a1c6a512-1295-4272-9138-f99709370657
2007-01-09More testing...Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11968 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Removed executable flagLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11967 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Removed test textBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11965 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11964 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11963 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11962 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11961 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11960 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11959 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11958 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Reverted testBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11957 a1c6a512-1295-4272-9138-f99709370657
2007-01-09Test commitBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11955 a1c6a512-1295-4272-9138-f99709370657
2006-04-26Replaced remaining '#pragma interrupt' with ↵Jens Arnold
__attribute__((interrupt_handler)). It's cleaner this way, and fixes sh-elf-gcc 3.4.x builds with -Os or -O2. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9816 a1c6a512-1295-4272-9138-f99709370657
2005-04-1864 sectors are 64 sectors...Jens Arnold
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6313 a1c6a512-1295-4272-9138-f99709370657
2005-04-18Display return code.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6312 a1c6a512-1295-4272-9138-f99709370657
2005-04-18rename() requires path on destination name nowBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6311 a1c6a512-1295-4272-9138-f99709370657
2005-04-18Don't create /dir in buildimageBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6310 a1c6a512-1295-4272-9138-f99709370657
2005-04-18FAT test case builds againBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@6309 a1c6a512-1295-4272-9138-f99709370657
2004-12-28prepared to mount multiple partitions into one logical file system (most ↵Jörg Hohensohn
useful for Ondio, internal memory + external MMC) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5514 a1c6a512-1295-4272-9138-f99709370657
2004-10-01test code portable nowJörg Hohensohn
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5145 a1c6a512-1295-4272-9138-f99709370657
2004-04-16Added rmdir, and changed atoi() to strtol(), to be able to enter hex values ↵Linus Nielsen Feltzing
as arguments git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4507 a1c6a512-1295-4272-9138-f99709370657
2004-04-15Minor corrections for the mkdir function, and some cleanupLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4506 a1c6a512-1295-4272-9138-f99709370657
2004-01-15Implemented the mkdir() function in the FAT32 driverLinus Nielsen Feltzing
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4238 a1c6a512-1295-4272-9138-f99709370657
2004-01-08ancient experimental test code not used for 2+ years, removedDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4212 a1c6a512-1295-4272-9138-f99709370657
2004-01-08prehistoric stuff never usedDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4211 a1c6a512-1295-4272-9138-f99709370657
2004-01-08malloc is not used in RockboxDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4210 a1c6a512-1295-4272-9138-f99709370657
2003-03-16initial test code for the snprintf() (and family) functionDaniel Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3449 a1c6a512-1295-4272-9138-f99709370657
2003-03-10Updated with new export dirBjörn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3404 a1c6a512-1295-4272-9138-f99709370657
2003-02-14The power-saving SLEEP patch by Simon Elén.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@3259 a1c6a512-1295-4272-9138-f99709370657
2002-12-03Fat test code, for the archives.Björn Stenberg
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2911 a1c6a512-1295-4272-9138-f99709370657