Fix OpenBSD >4.2 crash when printing out bootpath

git-svn-id: svn://coreboot.org/openbios/openbios-devel@244 f158a5a8-5612-0410-a976-696ce0be7e32
This commit is contained in:
Blue Swirl
2008-11-02 19:25:05 +00:00
parent 59f731027a
commit f6ddfeb0e7
3 changed files with 12 additions and 6 deletions

View File

@@ -41,12 +41,12 @@ void boot(void)
oldpath = "fd()";
break;
case 'c':
path = strdup("disk");
path = strdup("disk:d");
oldpath = "sd(0,0,0):d";
break;
default:
case 'd':
path = strdup("cdrom");
path = strdup("cdrom:b");
// FIXME: hardcoding this looks almost definitely wrong.
// With sd(0,2,0):b we get to see the solaris kernel though
//oldpath = "sd(0,2,0):d";
@@ -86,7 +86,7 @@ void boot(void)
obp_arg.argv[1] = param;
}
romvec = init_openprom(qemu_mem_size);
romvec = init_openprom(qemu_mem_size, path);
if (kernel_size) {
int (*entry)(const void *romvec_ptr, int p2, int p3, int p4, int p5);