mirror of
https://gitlab.com/qemu-project/openbios.git
synced 2024-02-13 08:34:06 +08:00
The previous code used the standard set_property() function which copies the new property into the dictionary each time the property is set. During OpenSolaris boot, this would cause OpenBIOS to run out of memory due to large number of changes to the memory regions. Now for each property we have a static buffer allocated within OpenBIOS which starts from 2K and doubles in size everytime the memory region is exhausted, and set the address directly to the relevant buffer. This saves a great deal of memory and prevents the dictionary and internal memory regions from being exhausted during OpenSolaris boot. Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@siriusit.co.uk> git-svn-id: svn://coreboot.org/openbios/trunk/openbios-devel@896 f158a5a8-5612-0410-a976-696ce0be7e32