diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-15 05:33:10 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2005-08-15 05:33:10 +0000 |
commit | 073f83ada3f4b92acb297317a590dc08b5a291d9 (patch) | |
tree | eee710da91ec57364b50255f13b5d4ee758ab1fd | |
parent | f22eeee119bbb30e7a28dd4d0751bdb1201d5a90 (diff) | |
download | rockbox-073f83ada3f4b92acb297317a590dc08b5a291d9.tar.gz rockbox-073f83ada3f4b92acb297317a590dc08b5a291d9.zip |
Correct usage of ICODE_ATTR in memcpy.c and strlen.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@7328 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r-- | firmware/common/memcpy.c | 3 | ||||
-rw-r--r-- | firmware/common/strlen.c | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/firmware/common/memcpy.c b/firmware/common/memcpy.c index 49678920fa..5b23eba8d5 100644 --- a/firmware/common/memcpy.c +++ b/firmware/common/memcpy.c | |||
@@ -32,6 +32,7 @@ QUICKREF | |||
32 | memcpy ansi pure | 32 | memcpy ansi pure |
33 | */ | 33 | */ |
34 | 34 | ||
35 | #include "config.h" | ||
35 | #include <_ansi.h> | 36 | #include <_ansi.h> |
36 | #include <stddef.h> | 37 | #include <stddef.h> |
37 | #include <limits.h> | 38 | #include <limits.h> |
@@ -53,7 +54,7 @@ _PTR | |||
53 | _DEFUN (memcpy, (dst0, src0, len0), | 54 | _DEFUN (memcpy, (dst0, src0, len0), |
54 | _PTR dst0 _AND | 55 | _PTR dst0 _AND |
55 | _CONST _PTR src0 _AND | 56 | _CONST _PTR src0 _AND |
56 | size_t len0) __attribute__ ((section (".icode"))); | 57 | size_t len0) ICODE_ATTR; |
57 | 58 | ||
58 | _PTR | 59 | _PTR |
59 | _DEFUN (memcpy, (dst0, src0, len0), | 60 | _DEFUN (memcpy, (dst0, src0, len0), |
diff --git a/firmware/common/strlen.c b/firmware/common/strlen.c index 932567c181..2e2c62eb75 100644 --- a/firmware/common/strlen.c +++ b/firmware/common/strlen.c | |||
@@ -31,6 +31,7 @@ QUICKREF | |||
31 | strlen ansi pure | 31 | strlen ansi pure |
32 | */ | 32 | */ |
33 | 33 | ||
34 | #include "config.h" | ||
34 | #include <_ansi.h> | 35 | #include <_ansi.h> |
35 | #include <string.h> | 36 | #include <string.h> |
36 | #include <limits.h> | 37 | #include <limits.h> |
@@ -55,7 +56,7 @@ QUICKREF | |||
55 | 56 | ||
56 | size_t | 57 | size_t |
57 | _DEFUN (strlen, (str), | 58 | _DEFUN (strlen, (str), |
58 | _CONST char *str) __attribute__ ((section (".icode"))); | 59 | _CONST char *str) ICODE_ATTR; |
59 | 60 | ||
60 | size_t | 61 | size_t |
61 | _DEFUN (strlen, (str), | 62 | _DEFUN (strlen, (str), |