On 2/1/10 10:05 PM, Igor V. Kovalenko wrote:
From: Igor V. Kovalenko igor.v.kovalenko@gmail.com
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
Thanks for finding this!
Stefan