From owner-cvs-all@FreeBSD.ORG Fri Jun 3 19:41:07 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 5931416A41C; Fri, 3 Jun 2005 19:41:07 +0000 (GMT) (envelope-from imp@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 253BB43D1D; Fri, 3 Jun 2005 19:41:07 +0000 (GMT) (envelope-from imp@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 j53Jf7fK076622; Fri, 3 Jun 2005 19:41:07 GMT (envelope-from imp@repoman.freebsd.org) Received: (from imp@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j53Jf7qK076621; Fri, 3 Jun 2005 19:41:07 GMT (envelope-from imp) Message-Id: <200506031941.j53Jf7qK076621@repoman.freebsd.org> From: Warner Losh Date: Fri, 3 Jun 2005 19:41:07 +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/dev/pci pci.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: Fri, 03 Jun 2005 19:41:07 -0000 imp 2005-06-03 19:41:06 UTC FreeBSD src repository Modified files: sys/dev/pci pci.c Log: Mask off the bar's value after the probe test write before testing against 0 in pci_alloc_map, just like we do in pci_add_map. Also, make sure that we restore the value to the BAR that was there before if the bar is 0. Chances are that it was 0 before the write too and that the restoration is a nop, but better safe than sorry. Notice by: dwhite Revision Changes Path 1.292 +2 -2 src/sys/dev/pci/pci.c