aboutsummaryrefslogtreecommitdiff
path: root/AT91SAM7S256/Source/d_sound_adpcm.r
diff options
context:
space:
mode:
authorNicolas Schodet2010-07-13 00:46:25 +0200
committerNicolas Schodet2010-08-20 00:18:22 +0200
commit5b74fd2352297c6f97042b42b946f04c3d55ba11 (patch)
tree905eabc84181a3d1979a3c05225347a7074a72b3 /AT91SAM7S256/Source/d_sound_adpcm.r
parenta76dd27d273424a260908c88c6b3aa5d04e898b7 (diff)
gcc: add __ramdata definition
Data used in RAM functions should also be stored in RAM. This definition is needed because gcc will place static data which are never modified to .rodata section.
Diffstat (limited to 'AT91SAM7S256/Source/d_sound_adpcm.r')
-rw-r--r--AT91SAM7S256/Source/d_sound_adpcm.r2
1 files changed, 2 insertions, 0 deletions
diff --git a/AT91SAM7S256/Source/d_sound_adpcm.r b/AT91SAM7S256/Source/d_sound_adpcm.r
index 2feff3b..f04a760 100644
--- a/AT91SAM7S256/Source/d_sound_adpcm.r
+++ b/AT91SAM7S256/Source/d_sound_adpcm.r
@@ -47,12 +47,14 @@
#ifdef SAM7S256
+__ramdata
static SWORD IndexTable[16] =
{
-1, -1, -1, -1, 2, 4, 6, 8,
-1, -1, -1, -1, 2, 4, 6, 8,
};
+__ramdata
static SWORD StepsizeTable[89] =
{
7, 8, 9, 10, 11, 12, 13, 14, 16, 17,