Ignore:
File:
1 edited

Legend:

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

    rbf9cb2f ra17cced  
    229229    void *virt_ptr, uintptr_t bound)
    230230{
    231         uintptr_t virt;
    232         int rc = copy_from_uspace(&virt, virt_ptr, sizeof(virt));
    233         if (rc != EOK)
    234                 return rc;
    235        
    236         rc = physmem_map(ALIGN_DOWN(phys, FRAME_SIZE), pages, flags, &virt,
    237             bound);
     231        uintptr_t virt = (uintptr_t) -1;
     232        int rc = physmem_map(ALIGN_DOWN(phys, FRAME_SIZE), pages, flags,
     233            &virt, bound);
    238234        if (rc != EOK)
    239235                return rc;
     
    394390                        return rc;
    395391               
    396                 uintptr_t virt;
    397                 rc = copy_from_uspace(&virt, virt_ptr, sizeof(virt));
    398                 if (rc != EOK)
    399                         return rc;
    400                
    401392                uintptr_t phys;
     393                uintptr_t virt = (uintptr_t) -1;
    402394                rc = dmamem_map_anonymous(size, constraint, map_flags, flags,
    403395                    &phys, &virt, bound);
Note: See TracChangeset for help on using the changeset viewer.