fix archive size.

More cosmetical fixes to the output

Signed-off-by: Stefan Reinauer <stepan@coresystems.de>
Acked-by: Ronald G. Minnich <rminnich@gmail.com>



git-svn-id: svn://coreboot.org/repository/LinuxBIOSv3@211 f3766cd6-281f-0410-b1cd-43a5c92072e9
This commit is contained in:
Stefan Reinauer 2007-03-08 01:09:04 +00:00
parent 152fcb1949
commit 97c886a70c
2 changed files with 7 additions and 7 deletions

View file

@ -106,8 +106,8 @@ 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*1024;
archive.start=(void *)(0UL-archive.len);
archive.len=(CONFIG_LINUXBIOS_ROMSIZE_KB-16)*1024;
archive.start=(void *)(0UL-(CONFIG_LINUXBIOS_ROMSIZE_KB*1024));
// FIXME check integrity
@ -213,14 +213,14 @@ void stage1_main(u32 bist)
ret = run_file(&archive, "normal/stage2", (void *)0x1000);
if (ret)
die("FATAL: Failed in stage2 code");
die("FATAL: Failed in stage2 code.");
printk(BIOS_DEBUG, "Done stage2 code\n");
printk(BIOS_DEBUG, "Stage2 code done.\n");
ret = find_file(&archive, "normal/payload", &result);
if (ret) {
printk(BIOS_WARNING, "No such name %s\n", "normal/payload");
die("FATAL: No payload found.");
printk(BIOS_WARNING, "No such file '%s'.\n", "normal/payload");
die("FATAL: No payload found.\n");
}
ret = elfboot_mem(mem, result.start, result.len);

View file

@ -67,7 +67,7 @@ int copy_file(struct mem_file *archive, char *filename, void *where)
ret = find_file(archive, filename, &result);
if (ret) {
printk(BIOS_INFO, "LAR: copy_file: no such name %s\n", filename);
printk(BIOS_INFO, "LAR: copy_file: No such file '%s'\n", filename);
return 1;
}