summaryrefslogtreecommitdiff
path: root/device/ds_routines.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-09 22:28:58 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2020-07-09 22:43:01 +0200
commit2dbf108457d0a0057cc63d5b3b89fd4da48d2a72 (patch)
tree7de245e353f736224b07609dfa81b637c1fb2cf4 /device/ds_routines.c
parentd7d9a1e104c21183506935f26d59bb00161bd797 (diff)
Add vm_allocate_contiguous RPC
This allows privileged userland drivers to allocate buffers for e.g. DMA, and thus need them to be physically contiguous and get their physical address. Initial work by Zheng Da, reworked by Richard Braun, Damien Zammit, and myself. * doc/mach.texi (vm_allocate_contiguous): New RPC. * i386/include/mach/i386/machine_types.defs (rpc_phys_addr_t): New type. * i386/include/mach/i386/vm_types.h [!MACH_KERNEL] (phys_addr_t): Set type to 64bits. (rpc_phys_addr_t): New type, always 64bits. * include/mach/gnumach.defs (vm_allocate_contiguous):New RPC. * vm/vm_user.c (vm_allocate_contiguous): New function.
Diffstat (limited to 'device/ds_routines.c')
0 files changed, 0 insertions, 0 deletions