[OpenBIOS] C bindings
samuel at ibrium.se
Fri Oct 31 13:13:22 CET 2003
On Fri, Oct 31, 2003 at 12:20:29PM +0100, Stefan Reinauer wrote:
> Unfortunately this is not yet possible since plugins are initialized
> quite a bit before the dictionary is available.
> I'll seperate plugin dependencies and plugin initialization and move the
> init part beyound dictionary init. This way the above scenario can be
> used to directly add forth words that are written in C while still
> keeping them out of the openbios kernel.
> Does this sound reasonable?
Well, the first thing I did was to strip down the unix kernel into
something which was suitable for statically linking into the
mol-of image (which doesn't link against anything). In particular,
there is no plug-in interface (dlopen is not available for
All that is needed really is a hook once OpenFirmware has initialized
itself. One can do some stuff just before calling initialize
although the OF memory stuff (and probably more things in the
future?) is not initialized at that point. I think the best
thing would be to invoke a hook (if defined) just before
quit is called.
Or one should perhaps add a more generic system for static
initializers. I bet that other parts of OF will need some
eventually... (nvram parsing, device tree probing etc).
More information about the OpenBIOS