openbios/forth/device
Igor V. Kovalenko 91857d3a8c pathres: consistently encode unit address on 64bit target
This change fixes node unit address matching on arch
where cell is not 4 byte integer (tested with sparc64.)

Since we encode "reg" property chunks with encode-int
we need to use the same encoding while preparing unit
phys addr for comparison at path resolution time.

- (exact-match): calculate phys addr length using 4 byte
  member encoding with /l* not cells

- find-child: encode phys addr components similar to
  encode-int with 4 byte stores

Signed-off-by: Igor V. Kovalenko <igor.v.kovalenko@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>

git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@674 f158a5a8-5612-0410-a976-696ce0be7e32
2010-02-03 17:54:14 +00:00
..
README.device Remove unnecessary trailing newlines 2008-12-13 09:26:41 +00:00
build.xml initial import of openbios--main--1.0--patch-26 2006-04-26 15:08:19 +00:00
builtin.fs Change the new-device word so that subsequent words within a new device are added to the public wordlist and not 2010-01-01 18:17:15 +00:00
device.fs Change the new-device word so that subsequent words within a new device are added to the public wordlist and not 2010-01-01 18:17:15 +00:00
display.fs Disable romfont: unused 2009-01-10 11:49:43 +00:00
extra.fs initial import of openbios--main--1.0--patch-26 2006-04-26 15:08:19 +00:00
fcode.fs Revert r638, apply previous patch to extend control flow stack items to 2 data stack items, and fix the Fcode evaluator to use 2009-12-09 01:09:48 +00:00
feval.fs Display more information when ?fcode-verbose enabled (Mark Cave-Ayland) 2009-04-13 17:05:41 +00:00
font.fs Disable romfont: unused 2009-01-10 11:49:43 +00:00
logo.fs Remove unnecessary trailing newlines 2008-12-13 09:26:41 +00:00
missing Remove unnecessary trailing newlines 2008-12-13 09:26:41 +00:00
other.fs Correct Forth data stack when the alarm word is used (the implementation is currently missing, but we'll worry about that a bit 2009-12-09 18:44:01 +00:00
package.fs Implement push-package/pop-package (Mark Cave-Ayland) 2009-05-24 11:04:06 +00:00
pathres.fs pathres: consistently encode unit address on 64bit target 2010-02-03 17:54:14 +00:00
preof.fs Remove unnecessary trailing newlines 2008-12-13 09:26:41 +00:00
property.fs Remove unnecessary trailing newlines 2008-12-13 09:26:41 +00:00
romfont.bin initial import of openbios--main--1.0--patch-26 2006-04-26 15:08:19 +00:00
structures.fs initial import of openbios--main--1.0--patch-26 2006-04-26 15:08:19 +00:00
table.fs - hook up new 64bit words into fcode table. 2009-11-20 15:40:53 +00:00
terminal.fs Remove unnecessary trailing newlines 2008-12-13 09:26:41 +00:00
tree.fs Change the new-device word so that subsequent words within a new device are added to the public wordlist and not 2010-01-01 18:17:15 +00:00

README.device

The code you find here implements the IEEE 1275-1994 Open Firmware
device interface.

Chapter     File                    Comment
<none>      structures.fs           generic structures used by 5.3
5.3.2       <none>                  defined in user interface
5.3.3       fcode.fs                complete, partly untested
5.3.4       package.fs              incomplete
5.3.5       property.fs             incomplete
5.3.6       display.fs              incomplete
5.3.7       other.fs                incomplete

H2 and
5.3.1.1.1   preof.fs                pre-IEEE-1275-1994 words
	    split.fs
	    pathres.fs		    path resolution

	    table.fs		    fcode evaluator
	    feval.fs		    (byte-load)


2003/11/12 Stefan Reinauer <stepan@openbios.org>