aboutsummaryrefslogtreecommitdiff
path: root/kern/thread.h
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-03-19 18:09:46 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-04-03 00:44:04 +0200
commit4096bd9d9cbdbac9b1bfce99a393295f63a88cc5 (patch)
tree14310d54975eada411a5e494f1ad944d58376234 /kern/thread.h
parentf9b1676d4526ce89e6c6d41d8caf5759007d8c75 (diff)
downloadgnumach-4096bd9d9cbdbac9b1bfce99a393295f63a88cc5.tar.gz
gnumach-4096bd9d9cbdbac9b1bfce99a393295f63a88cc5.tar.bz2
gnumach-4096bd9d9cbdbac9b1bfce99a393295f63a88cc5.zip
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 requires matching changes in glibc and the Hurd. Message-Id: <20230319151017.531737-4-bugaevc@gmail.com>
Diffstat (limited to 'kern/thread.h')
-rw-r--r--kern/thread.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/thread.h b/kern/thread.h
index f8989f45..3485f6af 100644
--- a/kern/thread.h
+++ b/kern/thread.h
@@ -190,7 +190,7 @@ struct thread {
struct ipc_port *port;
int exc;
int code;
- int subcode;
+ long subcode;
} exception;
void *other; /* catch-all for other state */
} saved;