diff options
author | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
---|---|---|
committer | Angelos Mouzakitis <a.mouzakitis@virtualopensystems.com> | 2023-10-10 14:33:42 +0000 |
commit | af1a266670d040d2f4083ff309d732d648afba2a (patch) | |
tree | 2fc46203448ddcc6f81546d379abfaeb323575e9 /roms/openbios/Documentation/kernel/initializers.txt | |
parent | e02cda008591317b1625707ff8e115a4841aa889 (diff) |
Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec
Diffstat (limited to 'roms/openbios/Documentation/kernel/initializers.txt')
-rw-r--r-- | roms/openbios/Documentation/kernel/initializers.txt | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/roms/openbios/Documentation/kernel/initializers.txt b/roms/openbios/Documentation/kernel/initializers.txt new file mode 100644 index 000000000..18a8e23a7 --- /dev/null +++ b/roms/openbios/Documentation/kernel/initializers.txt @@ -0,0 +1,24 @@ + +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. + |