about summary refs log tree commit diff
path: root/hurd/hurdfault.c
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-03-19 18:09:47 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:51:42 +0200
commitd8ee5d614bc485f6d1752dfa0d60524b20945a56 (patch)
tree4588965f4cbb0eaa66a265a8ad141137966d5464 /hurd/hurdfault.c
parent09b382122288e706c5fa2c0412910f71c78b7d63 (diff)
downloadglibc-d8ee5d614bc485f6d1752dfa0d60524b20945a56.tar.gz
glibc-d8ee5d614bc485f6d1752dfa0d60524b20945a56.tar.xz
glibc-d8ee5d614bc485f6d1752dfa0d60524b20945a56.zip
hurd: Make exception subcode a long
On EXC_BAD_ACCESS, exception subcode is used to pass the faulting memory
address, so it needs to be (at least) pointer-sized. Thus, make it into
a long. This matches the corresponding change in GNU Mach.
Message-Id: <20230319151017.531737-5-bugaevc@gmail.com>
Diffstat (limited to 'hurd/hurdfault.c')
-rw-r--r--hurd/hurdfault.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
index 069c1c262c..a81e72803f 100644
--- a/hurd/hurdfault.c
+++ b/hurd/hurdfault.c
@@ -45,7 +45,7 @@ _hurdsig_fault_catch_exception_raise (mach_port_t port,
 				      mach_msg_type_number_t codeCnt
 #else				/* Vanilla Mach 3.0 interface.  */
 				      integer_t exception,
-				      integer_t code, integer_t subcode
+				      integer_t code, long_integer_t subcode
 #endif
 				      )
 {