diff options
author | Michael I. Bushnell <mib@gnu.org> | 1994-05-20 23:31:38 +0000 |
---|---|---|
committer | Michael I. Bushnell <mib@gnu.org> | 1994-05-20 23:31:38 +0000 |
commit | 1ef34d2ad427ac665fc77424135a8371541193e6 (patch) | |
tree | 4ce2a15b98f930f7c1e232d869e8a3a6a08fbfdf /libpager/object-init.c | |
parent | 4ee2463e532bbf1b0dedfd68a8a5dcb2d18a3782 (diff) |
Formerly object-init.c.~9~
Diffstat (limited to 'libpager/object-init.c')
-rw-r--r-- | libpager/object-init.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libpager/object-init.c b/libpager/object-init.c index 8933189b..fe31e8ca 100644 --- a/libpager/object-init.c +++ b/libpager/object-init.c @@ -29,6 +29,8 @@ _pager_seqnos_memory_object_init (mach_port_t object, vm_size_t pagesize) { struct pager *p; + boolean_t may_cache; + memory_object_copy_strategy_t copy_strategy; if (!(p = ports_check_port_type (object, pager_port_type))) return EOPNOTSUPP; @@ -52,9 +54,8 @@ _pager_seqnos_memory_object_init (mach_port_t object, p->memobjcntl = control; p->memobjname = name; - /* Tell the kernel we're ready */ - /* XXX Don't cache for now. */ - memory_object_ready (control, 0, MEMORY_OBJECT_COPY_NONE); + pager_report_attributes (p->upi, &may_cache, ©_strategy); + memory_object_ready (control, may_cache, copy_strategy); p->pager_state = NORMAL; |