diff options
Diffstat (limited to 'libhurd-mm')
-rw-r--r-- | libhurd-mm/ChangeLog | 6 | ||||
-rw-r--r-- | libhurd-mm/anonymous.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libhurd-mm/ChangeLog b/libhurd-mm/ChangeLog index ff5859d..bd6a94e 100644 --- a/libhurd-mm/ChangeLog +++ b/libhurd-mm/ChangeLog @@ -1,9 +1,13 @@ 2008-11-18 Neal H. Walfield <neal@gnu.org> + * anonymous.c (advise): When ADVICE is pager_advice_normal, set + INFO.DISCARDED to ANON->POLICY.DISCARDABLE. + +2008-11-18 Neal H. Walfield <neal@gnu.org> + * anonymous.c (fault): Preallocate the pages surrounding a fault. Only copy the capability in place if we just allocated the storage. - 2008-11-17 Neal H. Walfield <neal@gnu.org> * as-lookup.c (DUMP_OR_RET) [NDEBUG]: Just return. diff --git a/libhurd-mm/anonymous.c b/libhurd-mm/anonymous.c index 345eb58..52ea295 100644 --- a/libhurd-mm/anonymous.c +++ b/libhurd-mm/anonymous.c @@ -531,9 +531,9 @@ advise (struct pager *pager, case pager_advice_normal: { struct exception_info info; - info.discarded = true; + info.discarded = anon->policy.discardable; info.type = cap_page; - /* XXX: What should be set info.access to? */ + /* XXX: What should we set info.access to? */ info.access = MAP_ACCESS_ALL; bool r = fault (pager, start, length / PAGESIZE, false, |