ppc64: Don't set Kp bit on SLB
[openbios/afaerber.git] / forth / system / main.fs
blob122ab1fa321941b2d1054cae5959880faccda871
1 \ tag: misc useful functions
2 \
3 \ Open Firmware Startup
4 \
5 \ Copyright (C) 2003 Samuel Rydh
6 \
7 \ See the file "COPYING" for further information about
8 \ the copyright and warranty status of this work.
9 \
11 variable PREPOST-list
12 variable POST-list
13 variable SYSTEM-list
14 variable DIAG-list
16 : PREPOST-initializer ( xt -- )
17 PREPOST-list list-add ,
20 : POST-initializer ( xt -- )
21 POST-list list-add ,
24 : SYSTEM-initializer ( xt -- )
25 SYSTEM-list list-add ,
28 : DIAG-initializer ( xt -- )
29 DIAG-list list-add ,
33 \ OpenFirmware entrypoint
34 : initialize-of ( startmem endmem -- )
35 initialize-forth
37 PREPOST-list begin list-get while @ execute repeat
38 POST-list begin list-get while @ execute repeat
39 SYSTEM-list begin list-get while @ execute repeat
41 \ evaluate nvramrc script
42 use-nvramrc? if
43 nvramrc evaluate
44 then
46 \ probe-all etc.
47 suppress-banner? 0= if
48 probe-all
49 install-console
50 banner
51 then
53 DIAG-list begin list-get while @ execute repeat
55 auto-boot? if
56 boot-command evaluate
57 then
59 outer-interpreter