diff mbox series

[03/10] hurd: Use MACHINE_THREAD_STATE_SETUP_CALL

Message ID 20230517191436.73636-4-bugaevc@gmail.com
State New
Headers show
Series Stack setup & misc fixes for x86_64-gnu | expand

Commit Message

Sergey Bugaev May 17, 2023, 7:14 p.m. UTC
Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
---
 hurd/hurdfault.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Samuel Thibault May 17, 2023, 8:52 p.m. UTC | #1
Applied, thanks!

Sergey Bugaev via Libc-alpha, le mer. 17 mai 2023 22:14:29 +0300, a ecrit:
> Signed-off-by: Sergey Bugaev <bugaevc@gmail.com>
> ---
>  hurd/hurdfault.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
> index 4340897d..dae889a9 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,
> -- 
> 2.40.1
>
diff mbox series

Patch

diff --git a/hurd/hurdfault.c b/hurd/hurdfault.c
index 4340897d..dae889a9 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,