From 4102ed56f08a2322e8db53655538724863163171 Mon Sep 17 00:00:00 2001 From: Nils Wallménius Date: Tue, 17 Jul 2007 14:53:44 +0000 Subject: 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 --- firmware/rolo.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'firmware/rolo.c') 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; -- cgit v1.2.3