summaryrefslogtreecommitdiff
path: root/mach-defpager/mig-decls.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-26 03:49:07 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-26 03:49:11 +0100
commitf5fb893ef5db2bf0e70aa0ba108c9d189fea607b (patch)
tree2e980c7181b1d07a7a81a2bb4309aff069e81406 /mach-defpager/mig-decls.h
parent25ae24c53dbada6be01791c5f15b26d103ee588d (diff)
parent07e46eb2e25583f0f3e06342f0c854769b353b10 (diff)
Merge branch 'master' of git.savannah.gnu.org:/srv/git/hurd/hurd
Diffstat (limited to 'mach-defpager/mig-decls.h')
-rw-r--r--mach-defpager/mig-decls.h7
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__ */