[OpenBIOS] [PATCH] pathres: consistently encode unit address on 64bit target

Stefan Reinauer stepan at openbios.org
Mon Feb 1 23:40:31 CET 2010


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

Stefan



More information about the OpenBIOS mailing list