Date: Fri, 3 Jun 2005 19:41:07 +0000 (UTC) From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/pci pci.c Message-ID: <200506031941.j53Jf7qK076621@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200506031941.j53Jf7qK076621>