From be9c1b9cf4b5c1e436d08e189ea4305e57082a89 Mon Sep 17 00:00:00 2001 From: Sergey Bugaev Date: Wed, 17 May 2023 22:14:29 +0300 Subject: hurd: Use MACHINE_THREAD_STATE_SETUP_CALL Signed-off-by: Sergey Bugaev Message-Id: <20230517191436.73636-4-bugaevc@gmail.com> --- hurd/hurdfault.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hurd/hurdfault.c') 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, -- cgit 1.4.1