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: Thu, 06 Oct 2005 18:54:19 +0200

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 2005-10-06

Page template was last modified "Tue Sep 7 00:00:02 2021" The Rockbox Crew -- Privacy Policy