diff options
| author | Jake Burkholder <jake@FreeBSD.org> | 2002-11-10 19:17:36 +0000 |
|---|---|---|
| committer | Jake Burkholder <jake@FreeBSD.org> | 2002-11-10 19:17:36 +0000 |
| commit | de0acbf78fea31660f19c7dec7ae8b590033d5d3 (patch) | |
| tree | afef4c9c5cb095c3438e4a1874a05286c64fec0e /sys/boot/powerpc/loader/metadata.c | |
| parent | 6f0d017cf49ece63b2023718e12fb45c2dfe521f (diff) | |
Notes
Diffstat (limited to 'sys/boot/powerpc/loader/metadata.c')
| -rw-r--r-- | sys/boot/powerpc/loader/metadata.c | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/sys/boot/powerpc/loader/metadata.c b/sys/boot/powerpc/loader/metadata.c index be86c6c0d24e..0ef06a908bba 100644 --- a/sys/boot/powerpc/loader/metadata.c +++ b/sys/boot/powerpc/loader/metadata.c @@ -255,7 +255,6 @@ md_load(char *args, vm_offset_t *modulep) struct preloaded_file *kfp; struct preloaded_file *xp; struct file_metadata *md; - struct ofw_devdesc *rootdev; vm_offset_t kernend; vm_offset_t addr; vm_offset_t envp; @@ -273,16 +272,10 @@ md_load(char *args, vm_offset_t *modulep) * MI code before launching the kernel. */ rootdevname = getenv("rootdev"); - ofw_getdev((void **)(&rootdev), rootdevname, NULL); - if (rootdev == NULL) { /* bad $rootdev/$currdev */ - printf("can't determine root device\n"); - return(EINVAL); - } - + if (rootdevname == NULL) + rootdevname = getenv("currdev"); /* Try reading the /etc/fstab file to select the root device */ - getrootmount(ofw_fmtdev((void *)rootdev)); - - free(rootdev); + getrootmount(rootdevname); /* find the last module in the chain */ addr = 0; |
