blueswirl sparc32 -17 (without romvec.c changes)

git-svn-id: svn://coreboot.org/openbios/openbios-devel@32 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Stefan Reinauer
2006-05-25 21:02:53 +00:00
parent 2e863bf2ce
commit 40d0162516
5 changed files with 31 additions and 19 deletions

View File

@@ -65,6 +65,7 @@ int aout_load(struct sys_info *info, const char *filename, const char *cmdline)
goto out;
for (offset = 0; offset < 16 * 512; offset += 512) {
file_seek(offset);
if (lfile_read(&ehdr, sizeof ehdr) != sizeof ehdr) {
debug("Can't read a.out header\n");
retval = LOADER_NOT_SUPPORT;
@@ -72,8 +73,6 @@ int aout_load(struct sys_info *info, const char *filename, const char *cmdline)
}
if (!N_BADMAG(ehdr))
break;
file_seek(offset);
}
if (N_BADMAG(ehdr)) {