about summary refs log tree commit diff
path: root/hurd
diff options
context:
space:
mode:
authorSergey Bugaev <bugaevc@gmail.com>2023-05-17 22:14:29 +0300
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-17 22:52:46 +0200
commitbe9c1b9cf4b5c1e436d08e189ea4305e57082a89 (patch)
treec9614661202871c10b3be151f954b6ed6a792b85 /hurd
parent4a373ea7d677c69dc95903dbb542237ab1380eb5 (diff)
downloadglibc-be9c1b9cf4b5c1e436d08e189ea4305e57082a89.tar.gz
glibc-be9c1b9cf4b5c1e436d08e189ea4305e57082a89.tar.xz
glibc-be9c1b9cf4b5c1e436d08e189ea4305e57082a89.zip
hurd: Use MACHINE_THREAD_STATE_SETUP_CALL
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230517191436.73636-4-bugaevc@gmail.com>
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurdfault.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
index 4340897dee..dae889a93a 100644
--- a/hurd/hurdfault.c
+++ b/hurd/hurdfault.c
@@ -205,8 +205,8 @@ _hurdsig_fault_init (void)
      It runs the function above.  */
   memset (&state, 0, sizeof state);
   MACHINE_THREAD_STATE_FIX_NEW (&state);
-  MACHINE_THREAD_STATE_SET_PC (&state, faulted);
-  MACHINE_THREAD_STATE_SET_SP (&state, faultstack, sizeof faultstack);
+  MACHINE_THREAD_STATE_SETUP_CALL (&state, faultstack,
+				   sizeof faultstack, faulted);
 
   err = __USEPORT
     (PROC,