Rockbox mail archiveSubject: 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...
Received on 2002-10-11