Use the explicit value 0xffffffff instead of assuming that is what ~0UL

equals.

Approved by:	imp
This commit is contained in:
John Baldwin 2002-11-06 20:40:29 +00:00
parent f37f15337d
commit 02ccdce8db

View File

@ -421,7 +421,7 @@ cardbus_read_tuple_init(device_t cbdev, device_t child, u_int32_t *start,
case CARDBUS_CIS_ASI_BAR4:
case CARDBUS_CIS_ASI_BAR5:
*rid = CARDBUS_BASE0_REG + (CARDBUS_CIS_SPACE(*start) - 1) * 4;
pci_write_config(child, *rid, ~0UL, 4);
pci_write_config(child, *rid, 0xffffffff, 4);
break;
case CARDBUS_CIS_ASI_ROM:
*rid = CARDBUS_ROM_REG;