diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-12-30 00:09:32 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2021-12-30 00:10:07 +0100 |
commit | be8fbc0fa5a36d538cf34df8d6f0d30683075851 (patch) | |
tree | 5f053dfd393dfd0223e005f13ffe52b7f12d39fe /pci-arbiter | |
parent | 2a297c298df1eeea6a2839fcbc121f1b1aa13d81 (diff) | |
download | hurd-be8fbc0fa5a36d538cf34df8d6f0d30683075851.tar.gz hurd-be8fbc0fa5a36d538cf34df8d6f0d30683075851.tar.bz2 hurd-be8fbc0fa5a36d538cf34df8d6f0d30683075851.zip |
wire_task_self: Use in various translators
wire_task_self() was duplicating mach-defpager's wire_all_memory(), we
can just make mach-defpager now use the former (and not mlockall
either). Also pci-arbiter and rumpdisk can use it.
Diffstat (limited to 'pci-arbiter')
-rw-r--r-- | pci-arbiter/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pci-arbiter/main.c b/pci-arbiter/main.c index 602a545c..88d89f0e 100644 --- a/pci-arbiter/main.c +++ b/pci-arbiter/main.c @@ -210,7 +210,7 @@ main (int argc, char **argv) /* Make sure we will not swap out, in case we are needed for swapping back in. */ - err = mlockall(MCL_CURRENT | MCL_FUTURE); + err = wire_task_self (); if (err) error (1, errno, "cannot lock all memory"); |