diff options
author | Almudena Garcia <liberamenso10000@gmail.com> | 2020-08-12 15:39:59 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2020-08-12 23:36:49 +0200 |
commit | 520b457c7ca9813a3e9d3f1712540966862e1607 (patch) | |
tree | 23780c19d6435496de52cd803b7916aa47dbf15b /vm/vm_kern.h | |
parent | a86956a09a2248644a4a9610a261ebac8135db18 (diff) | |
download | gnumach-520b457c7ca9813a3e9d3f1712540966862e1607.tar.gz gnumach-520b457c7ca9813a3e9d3f1712540966862e1607.tar.bz2 gnumach-520b457c7ca9813a3e9d3f1712540966862e1607.zip |
vm_kern: Add kmem_alloc_aligned_table
This function allows to map a table in a memory page,
using its physical address,aligning the start of the page with the start of the table
*vm/vm_kern.c (kmem_alloc_aligned_table): New function. Returns a reference for the virtual address of the table.
*vm/vm_kern.h (kmem_alloc_aligned_table): New prototype
Diffstat (limited to 'vm/vm_kern.h')
-rw-r--r-- | vm/vm_kern.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm/vm_kern.h b/vm/vm_kern.h index 0cdb19db..13115ff9 100644 --- a/vm/vm_kern.h +++ b/vm/vm_kern.h @@ -55,6 +55,8 @@ extern kern_return_t kmem_alloc_pageable(vm_map_t, vm_offset_t *, extern kern_return_t kmem_valloc(vm_map_t, vm_offset_t *, vm_size_t); extern kern_return_t kmem_alloc_wired(vm_map_t, vm_offset_t *, vm_size_t); extern kern_return_t kmem_alloc_aligned(vm_map_t, vm_offset_t *, vm_size_t); +extern void* kmem_map_aligned_table(phys_addr_t, vm_size_t, int); + extern void kmem_free(vm_map_t, vm_offset_t, vm_size_t); extern void kmem_submap(vm_map_t, vm_map_t, vm_offset_t *, |