svn commit: r183825 - head/sys/boot/ofw/libofw
Nathan Whitehorn
nwhitehorn at FreeBSD.org
Mon Oct 13 17:14:30 UTC 2008
Author: nwhitehorn
Date: Mon Oct 13 17:14:29 2008
New Revision: 183825
URL: http://svn.freebsd.org/changeset/base/183825
Log:
Don't close OF disk devices on PowerPC. This fixes loader when booting from
disk on my Blue & White G3 system.
Modified:
head/sys/boot/ofw/libofw/ofw_disk.c
Modified: head/sys/boot/ofw/libofw/ofw_disk.c
==============================================================================
--- head/sys/boot/ofw/libofw/ofw_disk.c Mon Oct 13 16:46:24 2008 (r183824)
+++ head/sys/boot/ofw/libofw/ofw_disk.c Mon Oct 13 17:14:29 2008 (r183825)
@@ -155,7 +155,9 @@ ofwd_close(struct open_file *f)
if (odp->count == 0) {
SLIST_REMOVE(&opened_devs, odp, opened_dev,
link);
+ #if !defined(__powerpc__)
OF_close(odp->handle);
+ #endif
free(odp);
}
break;
More information about the svn-src-all
mailing list