Subversion Repositories HelenOS

Compare Revisions

Regard whitespace Rev 2106 → Rev 2107

/trunk/kernel/generic/src/ddi/ddi.c
234,8 → 234,8
*
* @return 0 on success, otherwise it returns error code found in errno.h
*/
unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base, unative_t
pages, unative_t flags)
unative_t sys_physmem_map(unative_t phys_base, unative_t virt_base,
unative_t pages, unative_t flags)
{
return (unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base,
FRAME_SIZE), ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE),
/trunk/kernel/generic/src/ddi/irq.c
302,10 → 302,10
spinlock_lock(&irq->lock);
if (devno == -1) {
/* Invoked by irq_dispatch(). */
/* Invoked by irq_dispatch_and_lock(). */
rv = ((irq->inr == inr) && (irq->claim() == IRQ_ACCEPT));
} else {
/* Invoked by irq_find(). */
/* Invoked by irq_find_and_lock(). */
rv = ((irq->inr == inr) && (irq->devno == devno));
}
361,10 → 361,10
spinlock_lock(&irq->lock);
if (devno == -1) {
/* Invoked by irq_dispatch() */
/* Invoked by irq_dispatch_and_lock() */
rv = (irq->claim() == IRQ_ACCEPT);
} else {
/* Invoked by irq_find() */
/* Invoked by irq_find_and_lock() */
rv = (irq->devno == devno);
}