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



Rockbox mail archive

Subject: Re: Loadable Modules?
From: Greg Haerr (greg_at_censoft.com)
Date: 2002-10-11


: load the module in, passing a jump-table (for
: addresses of firmware routines like yield() and writetext etc) on the stack
: to the new code. Maybe ROLO like relocation would be needed as well.

This sounds like a fun project. It would be nice if the modules could
call the firmware functions by name and dynamic symbol linking,
but this would probably use more memory than it's worth. (of course,
the loaded module could have the entire firmware symbol list bound
with it, along with the kernel version #) Depending on how gcc-sh
calls functions, a jump table may or may not be needed.

: As far as I can tell, it would be desirable to keep the music playing while
: (for example) Tetris was being played, but it is not nescesary to have to
: code for Tetris in memory all the time (unless you play it constantly!)

Since the MP3 buffer is circular, it probably wouldn't be that big a
deal to restrict loading kernel modules to when a song isn't playing...

Regards,

Greg



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