From owner-cvs-all@FreeBSD.ORG Wed Aug 17 17:36:47 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D7AF216A41F; Wed, 17 Aug 2005 17:36:47 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id AA8EB43D48; Wed, 17 Aug 2005 17:36:47 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j7HHaljC036842; Wed, 17 Aug 2005 17:36:47 GMT (envelope-from jhb@repoman.freebsd.org) Received: (from jhb@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j7HHalFM036841; Wed, 17 Aug 2005 17:36:47 GMT (envelope-from jhb) Message-Id: <200508171736.j7HHalFM036841@repoman.freebsd.org> From: John Baldwin Date: Wed, 17 Aug 2005 17:36:47 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/i386/isa if_el.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2005 17:36:48 -0000 jhb 2005-08-17 17:36:47 UTC FreeBSD src repository Modified files: sys/i386/isa if_el.c Log: Fix locking in el(4) and mark mpsafe. - Add locked variants of el_init and el_start. - Don't initialize the mutex and lock it during el_probe(). - Do initialize the mutex during attach. (el_probe() did destroy the mutex to cleanup, so this meant the driver was always using a destroyed mutex when it was running.) - Setup the interrupt handler after ether_ifattach(). - Fix locking in el_detach() and el_ioctl(). Note: Since I couldn't actually find anyone with this hardware, I'm going ahead and committing these changes so they won't be lost. I'll remove the driver in a week (real purpose of the MFC after below) unless someone pipes up to test this. MFC after: 1 week Tested by: gcc(1) Revision Changes Path 1.69 +79 -45 src/sys/i386/isa/if_el.c