diff options
Diffstat (limited to 'mach-defpager/mig-decls.h')
-rw-r--r-- | mach-defpager/mig-decls.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/mach-defpager/mig-decls.h b/mach-defpager/mig-decls.h index f63fef20..8118d61a 100644 --- a/mach-defpager/mig-decls.h +++ b/mach-defpager/mig-decls.h @@ -27,11 +27,8 @@ static inline struct dstruct * __attribute__ ((unused)) begin_using_default_pager (mach_port_t port) { - if (! MACH_PORT_VALID(port) - || ((default_pager_t) dnameof(port))->pager != (port)) - return DEFAULT_PAGER_NULL; - - return (default_pager_t) dnameof(port); + return (default_pager_t) hurd_ihash_find (&all_pagers.htable, + (hurd_ihash_key_t) port); } #endif /* __MACH_DEFPAGER_MIG_DECLS_H__ */ |