From owner-cvs-all Wed Jan 5 8:31:37 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 03CAC1549D; Wed, 5 Jan 2000 08:31:28 -0800 (PST) (envelope-from peter@FreeBSD.org) Received: (from peter@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id IAA05609; Wed, 5 Jan 2000 08:31:28 -0800 (PST) (envelope-from peter@FreeBSD.org) Message-Id: <200001051631.IAA05609@freefall.freebsd.org> From: Peter Wemm Date: Wed, 5 Jan 2000 08:31:28 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/isa fd.c fdc.h Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk peter 2000/01/05 08:31:28 PST Modified files: sys/isa fd.c fdc.h Log: Patch up some of the evilness left over from the early newbus porting. In particular: - Don't leave resources allocated in the probe routine. Allocate them during probe and release them. Probe's job is to identify devices only. - Don't abuse the ivars pointer.. (!). Create real ivars and use the proper access system. (the bus_read_ivar method) - Don't add the children until attach() has successfully grabbed the hardware, otherwise there are potential leaks if attach fails. Revision Changes Path 1.173 +135 -84 src/sys/isa/fd.c 1.17 +21 -1 src/sys/isa/fdc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message