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



Rockbox mail archive

Subject: Re: Loadable Modules?

Re: Loadable Modules?

From: Greg Haerr <greg_at_censoft.com>
Date: Fri, 11 Oct 2002 11:09:18 -0600

: 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
Received on 2002-10-11

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