hurd: Use MACHINE_THREAD_STATE_SETUP_CALL

Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
Message-Id: <20230517191436.73636-4-bugaevc@gmail.com>
This commit is contained in:
Sergey Bugaev 2023-05-17 22:14:29 +03:00 committed by Samuel Thibault
parent 4a373ea7d6
commit be9c1b9cf4

View File

@ -205,8 +205,8 @@ _hurdsig_fault_init (void)
It runs the function above. */ It runs the function above. */
memset (&state, 0, sizeof state); memset (&state, 0, sizeof state);
MACHINE_THREAD_STATE_FIX_NEW (&state); MACHINE_THREAD_STATE_FIX_NEW (&state);
MACHINE_THREAD_STATE_SET_PC (&state, faulted); MACHINE_THREAD_STATE_SETUP_CALL (&state, faultstack,
MACHINE_THREAD_STATE_SET_SP (&state, faultstack, sizeof faultstack); sizeof faultstack, faulted);
err = __USEPORT err = __USEPORT
(PROC, (PROC,