From 5b74fd2352297c6f97042b42b946f04c3d55ba11 Mon Sep 17 00:00:00 2001 From: Nicolas Schodet Date: Tue, 13 Jul 2010 00:46:25 +0200 Subject: 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. --- AT91SAM7S256/Source/d_sound_adpcm.r | 2 ++ 1 file changed, 2 insertions(+) (limited to 'AT91SAM7S256/Source/d_sound_adpcm.r') 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, -- cgit v1.2.3