Files
openbios/Documentation/kernel/initializers.txt
Stefan Reinauer 5c9eb9b45b initial import of openbios--main--1.0--patch-26
git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
2006-04-26 15:08:19 +00:00

25 lines
629 B
Plaintext

Initializers are called when the forth kernel is started, to do some
initialization stuff.
Pro: If code needs initialization you can keep this in place with the code
and don't need to patch the kernel itself to do so.
There are 2 types of initializers. "Normal" and "Late" initializers.
Since initializers are only called during startup, they don't need a name.
Definition:
initializer ( xt -- )
late-initializer ( xt -- )
Examples:
:noname <definition> ; initializer
:noname
some-base initializations
; late-initializer
Late initializers are run after all ordinary initializers have
been executed.