Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 60866a3 in mainline


Ignore:
Timestamp:
2009-05-19T19:06:39Z (14 years ago)
Author:
Jiri Svoboda <jirik.svoboda@…>
Branches:
lfn, master, serial
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.