Files
openbios/forth/device/builtin.fs
Mark Cave-Ayland 46f2ccaf6d Change the new-device word so that subsequent words within a new device are added to the public wordlist and not
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
2010-01-01 18:17:15 +00:00

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!