diff options
author | Nils Wallménius <nils@rockbox.org> | 2007-07-16 19:26:07 +0000 |
---|---|---|
committer | Nils Wallménius <nils@rockbox.org> | 2007-07-16 19:26:07 +0000 |
commit | 76fa0f7e30398e01d405b4391c30b99dca4c9288 (patch) | |
tree | c22252cad1416bd4962bae46428da248b63e738f /firmware | |
parent | c74e9a0755b09ae6443bfaa92dcb5e1bb91d40df (diff) | |
download | rockbox-76fa0f7e30398e01d405b4391c30b99dca4c9288.tar.gz rockbox-76fa0f7e30398e01d405b4391c30b99dca4c9288.zip |
Make a private function static where possible, add a comment, make a small cosmetic change
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13918 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware')
-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 1ad59e216b..427c8a2102 100644 --- a/firmware/rolo.c +++ b/firmware/rolo.c | |||
@@ -98,10 +98,10 @@ extern unsigned short descramble(const unsigned char* source, | |||
98 | extern void rolo_restart(const unsigned char* source, unsigned char* dest, | 98 | extern void rolo_restart(const unsigned char* source, unsigned char* dest, |
99 | int length); | 99 | int length); |
100 | #else | 100 | #else |
101 | void rolo_restart(const unsigned char* source, unsigned char* dest, | 101 | STATICIRAM void rolo_restart(const unsigned char* source, unsigned char* dest, |
102 | long length) __attribute__ ((section (".icode"))); | 102 | long length) ICODE_ATTR; |
103 | void rolo_restart(const unsigned char* source, unsigned char* dest, | 103 | STATICIRAM void rolo_restart(const unsigned char* source, unsigned char* dest, |
104 | long length) | 104 | long length) |
105 | { | 105 | { |
106 | long i; | 106 | long i; |
107 | unsigned char* localdest = dest; | 107 | unsigned char* localdest = dest; |
@@ -109,6 +109,9 @@ void rolo_restart(const unsigned char* source, unsigned char* dest, | |||
109 | unsigned long* memmapregs = (unsigned long*)0xf000f000; | 109 | unsigned long* memmapregs = (unsigned long*)0xf000f000; |
110 | #endif | 110 | #endif |
111 | 111 | ||
112 | /* This is the equivalent of a call to memcpy() but this must be done from | ||
113 | iram to avoid overwriting itself and we don't want to depend on memcpy() | ||
114 | always being in iram */ | ||
112 | for(i = 0;i < length;i++) | 115 | for(i = 0;i < length;i++) |
113 | *localdest++ = *source++; | 116 | *localdest++ = *source++; |
114 | 117 | ||