Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: .idata space for plugins (was Re: Asteroids on rockbox!)

.idata space for plugins (was Re: Asteroids on rockbox!)

From: Frederic Devernay <frederic.devernay_at_m4x.org>
Date: 2005-10-06

Jens Arnold wrote:
>>- I use IDATA_ATTR variables for things such as registers,
>>stack, frequently used global variables, for a total of less
>>than 300 bytes.
>
>
> That's the reason for the crashing. You must not use IRAM from
> within a plugin before stopping the music. The IRAM area is
> shared between codecs and plugins, so you'll overwrite codec
> data. The only plugin using IRAM so far is rockboy, and that
> stops the music anyway because it needs the audio buffer for
> loading ROMs etc.

Would it be possible to reserve a small part of the .idata section for plugins
(1K would be enough, since plugins usually need less fast memory) and to
instruct the plugins linker to use that space for .idata instead of starting at
0x0 ?

Fred
Received on Thu Oct 6 18:54:28 2005


Page was last modified "Jan 10 2012" The Rockbox Crew
aaa