From 3ac328c6ad937bf90c1b3145cb84f324c9ec8c94 Mon Sep 17 00:00:00 2001 From: "Michael I. Bushnell" Date: Thu, 18 Nov 1993 20:57:46 +0000 Subject: entered into RCS --- libthreads/mig_support.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'libthreads/mig_support.c') diff --git a/libthreads/mig_support.c b/libthreads/mig_support.c index 52936505..bb9e6a5e 100644 --- a/libthreads/mig_support.c +++ b/libthreads/mig_support.c @@ -174,3 +174,21 @@ __mig_dealloc_reply_port () { mig_dealloc_reply_port (); } + +/* XXX shouldn't need these */ +/* Called by MiG to allocate space. */ +void +__mig_allocate (vm_address_t *addr, + vm_size_t size) +{ + if (__vm_allocate (__mach_task_self (), addr, size, 1) != KERN_SUCCESS) + *addr = 0; +} + +/* Called by MiG to deallocate space. */ +void +__mig_deallocate (vm_address_t addr, + vm_size_t size) +{ + (void) __vm_deallocate (__mach_task_self (), addr, size); +} -- cgit v1.2.3