mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
the private wordlist by default. This is required for executing Milax Fcode which defines package words which need to be externally visible. As a consequence, it is now possible to remove lots of "external" words used building the device tree since this is now the default. git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@655 f158a5a8-5612-0410-a976-696ce0be7e32
31 lines
557 B
Forth
31 lines
557 B
Forth
\ tag: builtin devices
|
|
\
|
|
\ this code implements IEEE 1275-1994
|
|
\
|
|
\ Copyright (C) 2003 Stefan Reinauer
|
|
\
|
|
\ See the file "COPYING" for further information about
|
|
\ the copyright and warranty status of this work.
|
|
\
|
|
|
|
\ nodes it's children:
|
|
|
|
" /" find-device
|
|
|
|
new-device
|
|
" builtin" device-name
|
|
: open true ;
|
|
: close ;
|
|
|
|
new-device
|
|
" console" device-name
|
|
: open true ;
|
|
: close ;
|
|
: write dup >r bounds ?do i c@ (emit) loop r> ;
|
|
: read dup >r bounds ?do (key) i c! loop r> ;
|
|
finish-device
|
|
|
|
\ clean up afterwards
|
|
finish-device
|
|
0 active-package!
|