From patchwork Wed May 17 19:14:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Bugaev X-Patchwork-Id: 1782932 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=S0JxFmn1; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QM2qY29prz20KF for ; Thu, 18 May 2023 05:15:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 51D193857357 for ; Wed, 17 May 2023 19:15:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51D193857357 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1684350903; bh=aDkP3cui13RbJktuMTr+l/amo3TuUCSm3cZ/6kdcibg=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=S0JxFmn1aGxBvLvz7OcElxncZQWeUSuZxE4aPNhvFu0X5q77QimnoVjSOV/6FYXNJ 3hkmQGl+drptN0XVjazn9+byeDOr9sUhpGO4UlSvvir8XmNNtIxM+2kMSIRhEPVa+L afo6x9tNOIUET8O3nW2Zv360sIKpE6m0rrpts9Hg= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) by sourceware.org (Postfix) with ESMTPS id 44242385702F for ; Wed, 17 May 2023 19:14:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 44242385702F Received: by mail-lj1-x22e.google.com with SMTP id 38308e7fff4ca-2ac8c0fbb16so11507701fa.2 for ; Wed, 17 May 2023 12:14:44 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684350882; x=1686942882; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=aDkP3cui13RbJktuMTr+l/amo3TuUCSm3cZ/6kdcibg=; b=fU/mZqNCURr+D6dxVWTr52s5h6PGHRH08gCP63OhzjfHcClXwzuLT8LlXhrHirZCUC yKr/MJjqFH71DPE4+RuU1dFCouDx8FCA3ctzEEMHGq3UTYSI1HgUDub+S5REEUzGltqU wRimaTiEW53IXdYYSgotYj9kRJ74ruCKrt//yF1b6RnjBm+TTGLrLtTVL5WT9sTFg4Bd e8eRfY16IeaUzvU8aOSJZwy15xKv+me5VVOFEPk1KlkUJ7SP8WL//AEUwlmjTYyDEOp7 jguw6l8h7Q8/zD7CCQll0bpbFfZm0VGkLfTDNMcXC9yYx0P/WEFGyY4mLgakobs+oNb4 MPXw== X-Gm-Message-State: AC+VfDxizI4UsxZySxpaI6hk8OqqGNKvccvziP3XsH7dOYqMkQjlv6K1 CPh1mjeowgu4sPfllJd7gIEolAAiUUg= X-Google-Smtp-Source: ACHHUZ5LtfKHuu5gXkOIEoq3QKi9m2TMEh8Ksp/2z8luQxsE+86JKtTa8WHGPmctBKED5SsVCCx8ow== X-Received: by 2002:a19:c507:0:b0:4f1:3eea:eaf9 with SMTP id w7-20020a19c507000000b004f13eeaeaf9mr528304lfe.24.1684350882250; Wed, 17 May 2023 12:14:42 -0700 (PDT) Received: from surface-pro-6.. ([194.190.106.50]) by smtp.gmail.com with ESMTPSA id o18-20020ac24352000000b004eed8de597csm3415744lfl.32.2023.05.17.12.14.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 May 2023 12:14:41 -0700 (PDT) To: libc-alpha@sourceware.org, bug-hurd@gnu.org Subject: [PATCH 03/10] hurd: Use MACHINE_THREAD_STATE_SETUP_CALL Date: Wed, 17 May 2023 22:14:29 +0300 Message-Id: <20230517191436.73636-4-bugaevc@gmail.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230517191436.73636-1-bugaevc@gmail.com> References: <20230517191436.73636-1-bugaevc@gmail.com> MIME-Version: 1.0 X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Sergey Bugaev via Libc-alpha From: Sergey Bugaev Reply-To: Sergey Bugaev Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org Sender: "Libc-alpha" Signed-off-by: Sergey Bugaev --- 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,