set semaphore owner to the kernel team

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7454 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
beveloper
2004-05-07 23:28:13 +00:00
parent efc10d5e6a
commit 313e78ec7d
2 changed files with 5 additions and 2 deletions
@@ -86,6 +86,7 @@ ether_ifattach(struct ifnet *ifp, const uint8 *etheraddr)
ifp->if_input = ether_input;
ifp->if_rcv_sem = create_sem(0, "ifp->if_rcv_sem");
set_sem_owner(ifp->if_rcv_sem, B_SYSTEM_TEAM);
TRACE("calling if_init...\n");
ifp->if_init(ifp->if_softc);
@@ -340,16 +340,18 @@ rtl8169_open(const char *name, uint32 flags, void** cookie)
device->closed = false;
device->rxSpinlock = 0;
device->rxReadySem = create_sem(0, "rtl8169 rx ready");
device->rxNextIndex = 0;
device->rxIntIndex = 0;
device->rxFree = RX_DESC_COUNT;
device->rxReadySem = create_sem(0, "rtl8169 rx ready");
set_sem_owner(device->rxReadySem, B_SYSTEM_TEAM);
device->txSpinlock = 0;
device->txFreeSem = create_sem(TX_DESC_COUNT, "rtl8169 tx free");
device->txNextIndex = 0;
device->txIntIndex = 0;
device->txUsed = 0;
device->txFreeSem = create_sem(TX_DESC_COUNT, "rtl8169 tx free");
set_sem_owner(device->txFreeSem, B_SYSTEM_TEAM);
// enable busmaster and memory mapped access, disable io port access
val = gPci->read_pci_config(device->pciInfo->bus, device->pciInfo->device, device->pciInfo->function, PCI_command, 2);