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

Changeset 5acf533 in mainline


Ignore:
Timestamp:
2019-06-20T14:36:59Z (17 months ago)
Author:
Jiří Zárevúcky <zarevucky.jiri@…>
Children:
962c89af
Parents:
d7dfa05
Message:

Use a more concrete type in ddi syscalls

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • abi/include/_bits/native.h

    rd7dfa05 r5acf533  
    7070#endif
    7171
     72// TODO: Put this in a better location.
    7273#define uspace_ptr_as_area_info_t uspace_ptr(as_area_info_t)
    7374#define uspace_ptr_as_area_pager_info_t uspace_ptr(as_area_pager_info_t)
  • kernel/generic/include/ddi/ddi.h

    rd7dfa05 r5acf533  
    6363extern void pio_unmap(void *, void *, size_t);
    6464
    65 extern sys_errno_t sys_physmem_map(uintptr_t, size_t, unsigned int, uspace_addr_t,
     65extern sys_errno_t sys_physmem_map(uintptr_t, size_t, unsigned int, uspace_ptr_uintptr_t,
    6666    uintptr_t);
    6767extern sys_errno_t sys_physmem_unmap(uintptr_t);
    6868
    69 extern sys_errno_t sys_dmamem_map(size_t, unsigned int, unsigned int, uspace_addr_t,
    70     uspace_addr_t, uintptr_t);
     69extern sys_errno_t sys_dmamem_map(size_t, unsigned int, unsigned int, uspace_ptr_uintptr_t,
     70    uspace_ptr_uintptr_t, uintptr_t);
    7171extern sys_errno_t sys_dmamem_unmap(uintptr_t, size_t, unsigned int);
    7272
  • kernel/generic/src/ddi/ddi.c

    rd7dfa05 r5acf533  
    248248 */
    249249sys_errno_t sys_physmem_map(uintptr_t phys, size_t pages, unsigned int flags,
    250     uspace_addr_t virt_ptr, uintptr_t bound)
     250    uspace_ptr_uintptr_t virt_ptr, uintptr_t bound)
    251251{
    252252        uintptr_t virt;
     
    465465
    466466sys_errno_t sys_dmamem_map(size_t size, unsigned int map_flags, unsigned int flags,
    467     uspace_addr_t phys_ptr, uspace_addr_t virt_ptr, uintptr_t bound)
     467    uspace_ptr_uintptr_t phys_ptr, uspace_ptr_uintptr_t virt_ptr, uintptr_t bound)
    468468{
    469469        if ((flags & DMAMEM_FLAGS_ANONYMOUS) == 0) {
Note: See TracChangeset for help on using the changeset viewer.