diff options
author | neal <neal> | 2007-12-22 17:27:45 +0000 |
---|---|---|
committer | neal <neal> | 2007-12-22 17:27:45 +0000 |
commit | 130ffe56c693fd20c162135ae4fe9dc6421207ad (patch) | |
tree | 24af511702ae5f0cc6b34bc76060cc7a1d9657b5 /ruth | |
parent | 40e1bb55b60267bbb56448adf061926cbede6a40 (diff) |
hurd/
2007-12-22 Neal H. Walfield <neal@gnu.org>
* folio.h (FOLIO_PRIORITY_BITS): Define.
(FOLIO_PRIORITY_MIN): Likewise.
(FOLIO_PRIORITY_LRU): Likewise.
(FOLIO_PRIORITY_MAX): Likewise.
(FOLIO_GROUP_BITS): Likewise.
(FOLIO_GROUP_NONE): Likewise.
(FOLIO_GROUP_MIN): Likewise.
(FOLIO_GROUP_MAX): Likewise.
(struct folio_policy): New structure.
(FOLIO_POLICY_INIT): Define.
(FOLIO_POLICY_VOID): Likewise.
(FOLIO_POLICY_DEFAULT): Likewise.
(struct folio): Add field policy.
(RM_folio_policy): Define.
(folio_alloc): Take additional parameter policy.
(FOLIO_POLICY_DELIVER): Define.
(FOLIO_POLICY_DISCARDABLE_SET): Likewise.
(FOLIO_POLICY_GROUP_SET): Likewise.
(FOLIO_POLICY_PRIORITY_SET): Likewise.
(FOLIO_POLICY_SET): Likewise.
(folio_policy): New method.
viengoos/
2007-12-22 Neal H. Walfield <neal@gnu.org>
* object.h (folio_alloc): Take additional parameter policy.
Update users.
(folio_policy): New declaration.
* object.c: Include <hurd/folio.h>.
(folio_alloc): Take additional parameter policy. Use it.
(folio_policy): New function.
* server.c (server_loop): Update folio_alloc implementation to
handle additional parameter policy. Implement the folio_policy
method.
libhurd-mm/
2007-12-22 Neal H. Walfield <neal@gnu.org>
* storage.c (storage_alloc_): Update rm_folio_alloc use to reflect
API changes.
ruth/
2007-12-22 Neal H. Walfield <neal@gnu.org>
* ruth.c (main): Update rm_folio_alloc use to reflect API changes.
Diffstat (limited to 'ruth')
-rw-r--r-- | ruth/ChangeLog | 4 | ||||
-rw-r--r-- | ruth/ruth.c | 8 |
2 files changed, 8 insertions, 4 deletions
diff --git a/ruth/ChangeLog b/ruth/ChangeLog index 20ae274..65ab78b 100644 --- a/ruth/ChangeLog +++ b/ruth/ChangeLog @@ -1,3 +1,7 @@ +2007-12-22 Neal H. Walfield <neal@gnu.org> + + * ruth.c (main): Update rm_folio_alloc use to reflect API changes. + 2007-12-14 Neal H. Walfield <neal@gnu.org> * ruth.c (main): Only check the objects contained immediately diff --git a/ruth/ruth.c b/ruth/ruth.c index 2af419b..d65e1c7 100644 --- a/ruth/ruth.c +++ b/ruth/ruth.c @@ -138,7 +138,7 @@ main (int argc, char *argv[]) addr_t folio = capalloc (); assert (! ADDR_IS_VOID (folio)); - error_t err = rm_folio_alloc (activity, folio); + error_t err = rm_folio_alloc (activity, folio, FOLIO_POLICY_DEFAULT); assert (! err); int i; @@ -189,7 +189,7 @@ main (int argc, char *argv[]) assert (slot); slot->type = cap_folio; - error_t err = rm_folio_alloc (activity, f); + error_t err = rm_folio_alloc (activity, f, FOLIO_POLICY_DEFAULT); assert (! err); struct storage shadow_storage @@ -440,7 +440,7 @@ main (int argc, char *argv[]) /* Allocate a folio against the activity and use it. */ a[i].folio = capalloc (); - err = rm_folio_alloc (a[i].child, a[i].folio); + err = rm_folio_alloc (a[i].child, a[i].folio, FOLIO_POLICY_DEFAULT); assert (err == 0); a[i].page = capalloc (); @@ -486,7 +486,7 @@ main (int argc, char *argv[]) error_t err; addr_t folio = capalloc (); - err = rm_folio_alloc (activity, folio); + err = rm_folio_alloc (activity, folio, FOLIO_POLICY_DEFAULT); assert (err == 0); test (activity, folio, 2); |