From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 57616 invoked by alias); 22 Oct 2019 10:25:55 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Received: (qmail 57608 invoked by uid 89); 22 Oct 2019 10:25:54 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-6.0 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.1 spammy= X-HELO: us-smtp-1.mimecast.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1571739952; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Zeg0TZJdqDTL1Tx8WFWY816dR2WLq1uZyFHXo2KgWR8=; b=ciDS09Uc6jc0+NYi6TuNNdRh9qyrJ+gmWwjBAa69Yo3LULyGR8LgPNRJEW+nElJ1m0Qr6h 39sNgG4tkwI1AnmhVzJjDFHdOxvgVjbjx9cFiJPfKROvWBCGgEnAHj9cyzIv5+ecCoDnTK 9CNYfMMNjGsI/zKZJi1ia9EknCwr3dg= From: Florian Weimer To: Stefan Liebler Cc: GNU C Library Subject: Re: [PATCH] S390: Remove not needed stack frame in syscall function. References: <0e66f775-9669-ff29-e605-195b79382b3e@linux.ibm.com> Date: Tue, 22 Oct 2019 10:25:00 -0000 In-Reply-To: <0e66f775-9669-ff29-e605-195b79382b3e@linux.ibm.com> (Stefan Liebler's message of "Tue, 22 Oct 2019 10:00:04 +0200") Message-ID: <87o8y9krf9.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2019-10/txt/msg00646.txt.bz2 * Stefan Liebler: > As an svc invocation does not clobber any user space registers > despite of the return value r2 and it does not need a special > stack frame. This patch gets rid of the extra frame. > We just have to save and restore r6 and r7 as those are > preserved across function calls. Looks okay to me. Would it be possible to save r6 and r7 in caller-saved registers not clobbered by the system call? That might provide another small benefit. Thanks, Florian