From c1d219c066a5fbf6a6a4c3139f64954dbf12fd02 Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Wed, 10 May 2023 01:00:45 -0400 Subject: 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: --- sutils/swapon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sutils/swapon.c') 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); -- cgit v1.2.3