-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arch,pt: add vmap_range() and vunmap_range() API
This API allows to automatically map (or unmap) a range of physical addresses specified with a start address and length. Both vmap_range() and vunmap_range() allow to automatically map the physical address range into multiple different memory areas specified via vmap_flags parameter. Support memory areas via vmap_flags: * VMAP_IDENT - kernel address space, identity mapping * VMAP_KERNEL - high kernel addresses (small area) * VMAP_KERNEL_MAP - low kernel addresses (large area) * VMAP_KERNEL_USER - kernel address space, but user memory area * VMAP_KERNEL_USER_ACCESS - kernel address space, but user memory area with user access permission * VMAP_USER - user address space, user memory area * VMAP_USER_IDENT - user address space, identity mapping, no user access * VMAP_USER_KERNEL - user address space, high kernel addresses, no user access * VMAP_USER_KERNEL_MAP - user address space, low kernel addresses, no user access The vmap_range() tries to use as many huge pages as possible for the mapping. Signed-off-by: Pawel Wieczorkiewicz <[email protected]>
- Loading branch information
Showing
8 changed files
with
307 additions
and
90 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.