fix lar code to return 1 when the file is not found. (trivial)

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@421 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-06-29 22:15:24 +00:00
parent 0d458ab4fb
commit f481c0f6cf
2 changed files with 2 additions and 2 deletions

View file

@ -101,7 +101,7 @@ void stage1_main(u32 bist)
// FIXME this should be defined in the VPD area
// but NOT IN THE CODE.
archive.len=(CONFIG_LINUXBIOS_ROMSIZE_KB-16)*1024;
archive.len=(CONFIG_LINUXBIOS_ROMSIZE_KB)*1024;
archive.start=(void *)(0UL-(CONFIG_LINUXBIOS_ROMSIZE_KB*1024));
// FIXME check integrity

View file

@ -40,7 +40,7 @@ int find_file(struct mem_file *archive, char *filename, struct mem_file *result)
archive->len);
for (walk = archive->start;
walk < (char *)archive->start + archive->len - 1; walk += 16) {
(walk - 1) < (char *)(archive->start + archive->len - 1 ); walk += 16) {
if (strcmp(walk, MAGIC) != 0)
continue;