]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Mask off the bar's value after the probe test write before testing
authorWarner Losh <imp@FreeBSD.org>
Fri, 3 Jun 2005 19:41:06 +0000 (19:41 +0000)
committerWarner Losh <imp@FreeBSD.org>
Fri, 3 Jun 2005 19:41:06 +0000 (19:41 +0000)
commitf9937ed8f3fa040c39aba8ad433c978269ec3eec
tree1df46df2a39a9477585132e60932e65b4f210cfc
parent943af9df1b99688078cb654d9cbf1c4edb23ee9b
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
sys/dev/pci/pci.c