Files
openbios/arch/sparc64/init.fs
Blue Swirl 3170b1b24f Set variable defaults before nvram_init also for Sparc64 (cf. r136)
git-svn-id: svn://coreboot.org/openbios/openbios-devel@226 f158a5a8-5612-0410-a976-696ce0be7e32
2008-08-09 14:10:37 +00:00

56 lines
1002 B
Forth

: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
; PREPOST-initializer
\ preopen device nodes (and store the ihandles under /chosen)
:noname
" memory" " /memory" 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
device-end
: rmap@ ( virt -- rmentry )
drop 0
;