diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-04-25 14:39:12 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2009-04-25 14:39:12 +0000 |
commit | dcce5210c7c9b1f81cb1a968a9f9d91e2f719bb5 (patch) | |
tree | ea7c47be903cf582c930c0cb4e09b57865a907b4 /payloads | |
parent | 72631a01fa42cd419f8b40351cc7306fe149e334 (diff) |
Make 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)
Also avoid infinite loops and give up searching for new files for
invalid magic numbers.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4210 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'payloads')
0 files changed, 0 insertions, 0 deletions