X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/3903760236c30e3b5ace7a4eefac3a269d68957c..bca245acd4c03fd752d1a45f011ad495e60fe53d:/osfmk/mach/vm_map.defs diff --git a/osfmk/mach/vm_map.defs b/osfmk/mach/vm_map.defs index 54f85c7e5..7caa92639 100644 --- a/osfmk/mach/vm_map.defs +++ b/osfmk/mach/vm_map.defs @@ -71,12 +71,19 @@ subsystem #include #include +#define CONCAT(a,b) a ## b #if !KERNEL && !LIBSYSCALL_INTERFACE -#define PREFIX(NAME) _kernelrpc_ ## NAME +#define PREFIX(NAME) CONCAT(_kernelrpc_, NAME) #else #define PREFIX(NAME) NAME #endif +#if KERNEL_SERVER +#define KERNEL_SERVER_SUFFIX(NAME) CONCAT(NAME, _external) +#else +#define KERNEL_SERVER_SUFFIX(NAME) NAME +#endif + /* * Returns information about the contents of the virtual * address space of the target task at the specified @@ -109,7 +116,7 @@ routine vm_region( #if !KERNEL && !LIBSYSCALL_INTERFACE skip; #else -routine PREFIX(vm_allocate)( +routine PREFIX(KERNEL_SERVER_SUFFIX(vm_allocate))( target_task : vm_task_entry_t; inout address : vm_address_t; size : vm_size_t; @@ -283,7 +290,7 @@ routine vm_behavior_set( * The user-defined memory manager for this object is responsible * for further consistency.] */ -routine PREFIX(vm_map) ( +routine PREFIX(KERNEL_SERVER_SUFFIX(vm_map)) ( target_task : vm_task_entry_t; inout address : vm_address_t; size : vm_size_t; @@ -311,7 +318,7 @@ routine vm_machine_attribute( /* * Map portion of a task's address space. */ -routine PREFIX(vm_remap) ( +routine PREFIX(KERNEL_SERVER_SUFFIX(vm_remap)) ( target_task : vm_map_t; inout target_address : vm_address_t; size : vm_size_t; @@ -442,7 +449,7 @@ routine mach_make_memory_entry_64( -routine vm_map_64( +routine KERNEL_SERVER_SUFFIX(vm_map_64)( target_task : vm_task_entry_t; inout address : vm_address_t; size : vm_size_t; @@ -495,4 +502,9 @@ routine PREFIX(vm_purgable_control) ( control : vm_purgable_t; inout state : int); + +routine vm_map_exec_lockdown( + target_task : vm_map_t); + + /* vim: set ft=c : */