[OpenBIOS] [PATCH] fix regprop int encoding

Igor Kovalenko igor.v.kovalenko at gmail.com
Tue May 19 22:39:22 CEST 2009


Wrong encoding of "#address-cells" property can lead to a failure
fetching correct value in my-#acells method. According to docs
properties must be encoded with "encode-int". I spent some time
looking at the docs and it is clear that encode-int produces
quad-sized result (of size /l bytes).

This patch fixes pci helpers to encode to 32bit instead of 64bit values,
and correctes my-address and my-unit methods to read 32bit data
to match encode-int rules
modules/bindings.c: also fixed set_int_property and get_int_property
to match encode-int rules

Signed-off-by: Igor Kovalenko <igor.v.kovalenko at gmail.com>

-- 
Kind regards,
Igor V. Kovalenko
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-regprop-int-encoding.patch
Type: application/octet-stream
Size: 5961 bytes
Desc: not available
URL: <http://lists.openbios.org/pipermail/openbios/attachments/20090520/4a534ee7/attachment.dmg>


More information about the OpenBIOS mailing list