summaryrefslogtreecommitdiff
path: root/sutils
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2023-05-10 01:00:45 -0400
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-11 01:30:52 +0200
commitc1d219c066a5fbf6a6a4c3139f64954dbf12fd02 (patch)
treec3f39389796b8fb7cb8e044716c2307bbef53487 /sutils
parent50888737e48bab04a2c1290226249db927a60b4b (diff)
Only use host_get_kernel_version and default_pager_paging_storage_new in x86_64.
Also fixed the implementation of default_pager_paging_storage_new in proxy def pager to call into default_pager_paging_storage_new. We can fast track the simplification of the RPC ABI for x86_64 if we don't have MACH_MSG_TYPE_STRING used in RPCs which forces msgt_size to use more than 8 bits. Message-Id: <ZFsk/W+slpAZyTG1@jupiter.tail36e24.ts.net>
Diffstat (limited to 'sutils')
-rw-r--r--sutils/swapon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sutils/swapon.c b/sutils/swapon.c
index 30e2e2d6..6e3d64a4 100644
--- a/sutils/swapon.c
+++ b/sutils/swapon.c
@@ -411,11 +411,14 @@ swaponoff (const char *file, int add, int skipnotexisting)
}
err = default_pager_paging_storage_new (def_pager, store->port,
runs, j, file, add);
+#ifndef __x86_64__
+ /* We don't support default_pager_paging_storage in 64 bits. */
if (err == MIG_BAD_ID || err == EOPNOTSUPP)
{
err = default_pager_paging_storage (def_pager, store->port,
runs, j, file, add);
}
+#endif
store_free (store);