[LinuxBIOS] selection of compression algorithm

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Thu May 25 23:05:42 CEST 2006


yhlu wrote:
> just let the the uncompress take more parameter for the properties
> buf, and every cpu find the correct buffer in RAM in BSP should be
> OK...because the RAM on first node is ready at that time.

How about

int uncompress_generic(void *src, void *dst, void *buf, int bufsize);

and uncompress_generic can assume that buf can be treated like RAM.
If bufsize is too small, it can return an error. An additional function

int needed_bufsize(void *src);

could be written to compute the minimum buffer size for a given
compressed image.

What do you think?


Regards,
Carl-Daniel
-- 
http://www.hailfinger.org/




More information about the coreboot mailing list