Changeset 60866a3 in mainline for uspace/lib/libc/generic/ddi.c


Ignore:
Timestamp:
2009-05-19T19:06:39Z (15 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5b9d80c5
Parents:
c00589d
Message:

pio_enable() was not allocating address space properly (unless sz ⇐ PAGE_SIZE).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/libc/generic/ddi.c

    rc00589d r60866a3  
    131131        offset = pio_addr - phys;
    132132        pages = ALIGN_UP(offset + size, PAGE_SIZE) >> PAGE_WIDTH;
    133         virt = as_get_mappable_page(pages);
     133        virt = as_get_mappable_page(pages << PAGE_WIDTH);
    134134        *use_addr = virt + offset;
    135135        return physmem_map(phys, virt, pages, AS_AREA_READ | AS_AREA_WRITE);
Note: See TracChangeset for help on using the changeset viewer.