diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-07-17 14:53:44 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-07-17 14:53:44 +0000 |
commit | 4102ed56f08a2322e8db53655538724863163171 (patch) | |
tree | 9791636175271e3f2e4cdea1101c3b0fc9e9d9b5 | |
parent | fb102bab70c92ba9f2a2b88438164b704547601c (diff) |
Revert cosmetic change and staticing of the rolo_restart() function, because it would break rolo for gigabeat if anyone ever implemented it (because ICODE_ATTR is defined to be null for gigabeats).
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13924 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/rolo.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/firmware/rolo.c b/firmware/rolo.c index 427c8a2102..7ff5195318 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c @@ -98,10 +98,13 @@ extern unsigned short descramble(const unsigned char* source, extern void rolo_restart(const unsigned char* source, unsigned char* dest, int length); #else -STATICIRAM void rolo_restart(const unsigned char* source, unsigned char* dest, - long length) ICODE_ATTR; -STATICIRAM void rolo_restart(const unsigned char* source, unsigned char* dest, - long length) + +/* explicitly put this code in iram, ICODE_ATTR is defined to be null for some + targets that are low on iram, like the gigabeat F/X */ +void rolo_restart(const unsigned char* source, unsigned char* dest, + long length) __attribute__ ((section(".icode"))); +void rolo_restart(const unsigned char* source, unsigned char* dest, + long length) { long i; unsigned char* localdest = dest; |