summaryrefslogtreecommitdiff
path: root/libhurd-mm
diff options
context:
space:
mode:
authorNeal H. Walfield <neal@gnu.org>2008-11-18 11:19:08 +0100
committerNeal H. Walfield <neal@gnu.org>2008-11-18 11:19:08 +0100
commita95b4129117fb60661342b59ce37edbadcab73f2 (patch)
treee2227b3fe0ceff68349e41838374168c06f92d90 /libhurd-mm
parentcc93722ace50d55a93759eb6d13098a207908890 (diff)
For normal memory advice, set INFO.DISCARDED to ANON->POLICY.DISCARDABLE.
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.
Diffstat (limited to 'libhurd-mm')
-rw-r--r--libhurd-mm/ChangeLog6
-rw-r--r--libhurd-mm/anonymous.c4
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,