Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Oct 2008 17:14:29 +0000 (UTC)
From:      Nathan Whitehorn <nwhitehorn@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r183825 - head/sys/boot/ofw/libofw
Message-ID:  <200810131714.m9DHET4q081375@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200810131714.m9DHET4q081375>