[OpenBIOS] [PATCH 0/4] Changes for MorphOS
Tarl Neustaedter
tarl-b2 at tarl.net
Sun Mar 9 01:12:28 CET 2014
On 2014-Mar-8, 16:29 , Mark Cave-Ayland wrote:
>> What should it do to replace the name property? A assume it would call
>> some forth code to do this but I don't know how to do this properly. Any
>> ideas?
>
> It is possible by simply recreating a property with the same name but
> a different value; [...]
Careful with that. On Sun Openboot, the proper procedure is to delete
the property and then create a new property. It seems that when you
simply create a property on top of a previous property of the same name,
it doesn't re-allocate the storage. So overwriting a string property
with a longer string will trash either your heap or your device tree. I
don't know if OpenFirmware/OpenBios fixed that tradition.
More information about the OpenBIOS
mailing list