summaryrefslogtreecommitdiff
path: root/mach-defpager
diff options
context:
space:
mode:
authorJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-04 11:19:29 +0200
committerJustus Winter <4winter@informatik.uni-hamburg.de>2014-09-04 11:19:29 +0200
commit8fd228ccd454578fb0367d97d95b90f9073a8d7c (patch)
tree9a6afae269cec07c75cea8992a4d46e313d74a9f /mach-defpager
parent626ff916ca63334e6c170f059ea47f9cfea19661 (diff)
hurd: make memory_object parameter polymorphic
Make the memory_object parameter of default_pager_object_create polymorphic. This fixes https://savannah.gnu.org/bugs/?26751 . * hurd/default_pager.defs (default_pager_object_create): Make memory_object parameter polymorphic. * mach-defpager/default_pager.c (S_default_pager_object_create): Adjust accordingly. * trans/proxy-defpager.c (S_default_pager_object_create): Likewise.
Diffstat (limited to 'mach-defpager')
-rw-r--r--mach-defpager/default_pager.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mach-defpager/default_pager.c b/mach-defpager/default_pager.c
index 380c7246..d40a9c92 100644
--- a/mach-defpager/default_pager.c
+++ b/mach-defpager/default_pager.c
@@ -3160,6 +3160,7 @@ default_pager()
kern_return_t
S_default_pager_object_create (mach_port_t pager,
mach_port_t *mem_obj,
+ mach_msg_type_name_t *mem_obj_type,
vm_size_t size)
{
default_pager_t ds;
@@ -3190,6 +3191,7 @@ S_default_pager_object_create (mach_port_t pager,
default_pager_add(ds, FALSE);
*mem_obj = port;
+ *mem_obj_type = MACH_MSG_TYPE_MAKE_SEND;
return (KERN_SUCCESS);
}