Rockbox mail archive
Subject: Re: Loadable Modules?
From: Greg Haerr (greg_at_censoft.com)
: 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...
Page was last modified "Jan 10 2012" The Rockbox Crew