mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
152fcb1949
commit
97c886a70c
2 changed files with 7 additions and 7 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue