Changeset 98000fb in mainline for kernel/generic/src/ddi/ddi.c


Ignore:
Timestamp:
2009-06-03T19:34:45Z (15 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
301ff30
Parents:
69e68e3
Message:

remove redundant index_t and count_t types (which were always quite ambiguous and not actually needed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/generic/src/ddi/ddi.c

    r69e68e3 r98000fb  
    9898 *
    9999 */
    100 static int ddi_physmem_map(uintptr_t pf, uintptr_t vp, count_t pages, int flags)
     100static int ddi_physmem_map(uintptr_t pf, uintptr_t vp, size_t pages, int flags)
    101101{
    102102        ASSERT(TASK);
     
    119119        /* Find the zone of the physical memory */
    120120        spinlock_lock(&zones.lock);
    121         count_t znum = find_zone(ADDR2PFN(pf), pages, 0);
    122        
    123         if (znum == (count_t) -1) {
     121        size_t znum = find_zone(ADDR2PFN(pf), pages, 0);
     122       
     123        if (znum == (size_t) -1) {
    124124                /* Frames not found in any zones
    125125                 * -> assume it is hardware device and allow mapping
     
    243243        return (unative_t) ddi_physmem_map(ALIGN_DOWN((uintptr_t) phys_base,
    244244            FRAME_SIZE), ALIGN_DOWN((uintptr_t) virt_base, PAGE_SIZE),
    245             (count_t) pages, (int) flags);
     245            (size_t) pages, (int) flags);
    246246}
    247247
Note: See TracChangeset for help on using the changeset viewer.