diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2023-03-19 18:09:46 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2023-04-03 00:44:04 +0200 |
commit | 4096bd9d9cbdbac9b1bfce99a393295f63a88cc5 (patch) | |
tree | 14310d54975eada411a5e494f1ad944d58376234 /i386 | |
parent | f9b1676d4526ce89e6c6d41d8caf5759007d8c75 (diff) | |
download | gnumach-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 'i386')
-rw-r--r-- | i386/i386/trap.c | 2 | ||||
-rw-r--r-- | i386/i386/trap.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/i386/i386/trap.c b/i386/i386/trap.c index 34ccb6a5..f7bd8e38 100644 --- a/i386/i386/trap.c +++ b/i386/i386/trap.c @@ -628,7 +628,7 @@ void i386_exception( int exc, int code, - int subcode) + long subcode) { spl_t s; diff --git a/i386/i386/trap.h b/i386/i386/trap.h index d9df7afa..e82164d0 100644 --- a/i386/i386/trap.h +++ b/i386/i386/trap.h @@ -40,7 +40,7 @@ void i386_exception( int exc, int code, - int subcode) __attribute__ ((noreturn)); + long subcode) __attribute__ ((noreturn)); extern void thread_kdb_return(void); |