summaryrefslogtreecommitdiff
path: root/firmware/common
diff options
context:
space:
mode:
authorLinus Nielsen Feltzing <linus@haxx.se>2002-08-01 13:08:09 +0000
committerLinus Nielsen Feltzing <linus@haxx.se>2002-08-01 13:08:09 +0000
commitce2597550b646dfc6a31e2e0f13615a8618fac1e (patch)
tree32ca81977fbe2b91d5e5b1e8bfd1d7d7b85c7ca9 /firmware/common
parent9d589401c1134dc81883e2a957549a24f4dd137b (diff)
Moved to internal RAM
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1508 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/common')
-rw-r--r--firmware/common/memcpy.c6
-rw-r--r--firmware/common/memset.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/firmware/common/memcpy.c b/firmware/common/memcpy.c
index e3806805b6..49678920fa 100644
--- a/firmware/common/memcpy.c
+++ b/firmware/common/memcpy.c
@@ -53,6 +53,12 @@ _PTR
_DEFUN (memcpy, (dst0, src0, len0),
_PTR dst0 _AND
_CONST _PTR src0 _AND
+ size_t len0) __attribute__ ((section (".icode")));
+
+_PTR
+_DEFUN (memcpy, (dst0, src0, len0),
+ _PTR dst0 _AND
+ _CONST _PTR src0 _AND
size_t len0)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)
diff --git a/firmware/common/memset.c b/firmware/common/memset.c
index c370191cda..1885a476eb 100644
--- a/firmware/common/memset.c
+++ b/firmware/common/memset.c
@@ -43,6 +43,12 @@ _PTR
_DEFUN (memset, (m, c, n),
_PTR m _AND
int c _AND
+ size_t n) __attribute__ ((section (".icode")));
+
+_PTR
+_DEFUN (memset, (m, c, n),
+ _PTR m _AND
+ int c _AND
size_t n)
{
#if defined(PREFER_SIZE_OVER_SPEED) || defined(__OPTIMIZE_SIZE__)