2006-04-26 16:39:16 +00:00
|
|
|
:noname
|
|
|
|
|
." Type 'help' for detailed information" cr
|
|
|
|
|
\ ." boot secondary slave cdrom: " cr
|
|
|
|
|
\ ." 0 > boot hd:2,\boot\vmlinuz root=/dev/hda2" cr
|
|
|
|
|
; DIAG-initializer
|
|
|
|
|
|
|
|
|
|
: make-openable ( path )
|
|
|
|
|
find-dev if
|
|
|
|
|
begin ?dup while
|
|
|
|
|
\ install trivial open and close methods
|
|
|
|
|
dup active-package! is-open
|
|
|
|
|
parent
|
|
|
|
|
repeat
|
|
|
|
|
then
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
: preopen ( chosen-str node-path )
|
|
|
|
|
2dup make-openable
|
|
|
|
|
|
|
|
|
|
" /chosen" find-device
|
|
|
|
|
open-dev ?dup if
|
|
|
|
|
encode-int 2swap property
|
|
|
|
|
else
|
|
|
|
|
2drop
|
|
|
|
|
then
|
|
|
|
|
;
|
|
|
|
|
|
|
|
|
|
:noname
|
|
|
|
|
set-defaults
|
2007-05-01 14:12:34 +00:00
|
|
|
; PREPOST-initializer
|
2006-04-26 16:39:16 +00:00
|
|
|
|
|
|
|
|
\ preopen device nodes (and store the ihandles under /chosen)
|
|
|
|
|
:noname
|
|
|
|
|
" memory" " /memory" preopen
|
|
|
|
|
" mmu" " /cpus/@0" preopen
|
|
|
|
|
" stdout" " /builtin/console" preopen
|
|
|
|
|
" stdin" " /builtin/console" preopen
|
|
|
|
|
|
|
|
|
|
; SYSTEM-initializer
|
|
|
|
|
|
|
|
|
|
\ use the tty interface if available
|
|
|
|
|
:noname
|
|
|
|
|
" /builtin/console" find-dev if drop
|
|
|
|
|
" /builtin/console" " input-device" $setenv
|
|
|
|
|
" /builtin/console" " output-device" $setenv
|
|
|
|
|
then
|
|
|
|
|
; SYSTEM-initializer
|
|
|
|
|
|
|
|
|
|
:noname
|
|
|
|
|
" keyboard" input
|
|
|
|
|
; CONSOLE-IN-initializer
|
2006-06-05 19:41:28 +00:00
|
|
|
|
|
|
|
|
device-end
|
2006-06-05 20:34:53 +00:00
|
|
|
|
2006-06-05 19:41:28 +00:00
|
|
|
: rmap@ ( virt -- rmentry )
|
|
|
|
|
drop 0
|
|
|
|
|
;
|
2006-04-26 16:39:16 +00:00
|
|
|
|