On Sat, Apr 25, 2009 at 2:44 AM, Patrick Georgi patrick@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@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@gmail.com
Thanks, Myles