aboutsummaryrefslogtreecommitdiff
path: root/kern
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2024-03-27 19:18:28 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2024-03-27 19:39:47 +0100
commit74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902 (patch)
tree19c3116b95b4d196922f800f7323161028cb5181 /kern
parent04e11360aa26af072eb0ea3b024bc3983f1b7f8f (diff)
downloadgnumach-74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902.tar.gz
gnumach-74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902.tar.bz2
gnumach-74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902.zip
Load 64-bit ELFs on all 64-bit ports
Not only on x86_64. Message-ID: <20240327161841.95685-5-bugaevc@gmail.com>
Diffstat (limited to 'kern')
-rw-r--r--kern/exception.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/exception.c b/kern/exception.c
index 15f29705..7139b466 100644
--- a/kern/exception.c
+++ b/kern/exception.c
@@ -283,7 +283,7 @@ struct mach_exception {
#define INTEGER_T_SIZE_IN_BITS (8 * sizeof(integer_t))
#define INTEGER_T_TYPE MACH_MSG_TYPE_INTEGER_T
#define RPC_LONG_INTEGER_T_SIZE_IN_BITS (8 * sizeof(rpc_long_integer_t))
-#if defined(__x86_64__) && !defined(USER32)
+#if defined(__LP64__) && !defined(USER32)
#define RPC_LONG_INTEGER_T_TYPE MACH_MSG_TYPE_INTEGER_64
#else
#define RPC_LONG_INTEGER_T_TYPE MACH_MSG_TYPE_INTEGER_32