[coreboot] [PATCH] more intelligent cbfs walker

Myles Watson mylesgw at gmail.com
Sat Apr 25 14:14:37 CEST 2009


On Sat, Apr 25, 2009 at 2:44 AM, Patrick Georgi <patrick at georgi-clan.de> wrote:
> Hi,
>
> attached patch makes the CBFS file lookup skip file data instead of brute-
> forcing its way through it, looking for magic numbers.
> For one, it should speed up file access, esp. with many entries, but it also
> helps against false positives (eg. seabios, which contains the magic number
> for its own CBFS support, which _might_ just be aligned properly)
>
>
> Signed-off-by: Patrick Georgi <patrick.georgi at coresystems.de>

I'd prefer that it used the ALIGN macro, but it's a pretty trivial
macro.  It just makes it more clear.

Either way:
Acked-by: Myles Watson <mylesgw at gmail.com>

Thanks,
Myles




More information about the coreboot mailing list