Subversion Repositories HelenOS-historic

Compare Revisions

Ignore whitespace Rev 1414 → Rev 1413

/kernel/trunk/generic/src/synch/futex.c
119,7 → 119,7
interrupts_restore(ipl);
return (__native) ENOENT;
}
paddr = PTE_GET_FRAME(t) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
paddr = PFN2ADDR(PTE_GET_FRAME(t)) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
page_table_unlock(AS, true);
interrupts_restore(ipl);
133,7 → 133,8
*
* @param uaddr Userspace address of the futex counter.
*
* @return ENOENT if there is no physical mapping for uaddr.
* @return ENOENT if there is no futex associated with the address
* or if there is no physical mapping for uaddr.
*/
__native sys_futex_wakeup(__address uaddr)
{
154,7 → 155,7
interrupts_restore(ipl);
return (__native) ENOENT;
}
paddr = PTE_GET_FRAME(t) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
paddr = PFN2ADDR(PTE_GET_FRAME(t)) + (uaddr - ALIGN_DOWN(uaddr, PAGE_SIZE));
page_table_unlock(AS, true);
interrupts_restore(ipl);
191,7 → 192,7
} else {
/*
* Upgrade to writer is not currently supported,
* therefore, it is necessary to release the read lock
* Therefore, it is necessary to release the read lock
* and reacquire it as a writer.
*/
rwlock_read_unlock(&futex_ht_lock);