From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20D85C433F5 for ; Mon, 18 Oct 2021 05:53:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0571E610A6 for ; Mon, 18 Oct 2021 05:53:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230091AbhJRFzg (ORCPT ); Mon, 18 Oct 2021 01:55:36 -0400 Received: from wtarreau.pck.nerim.net ([62.212.114.60]:44362 "EHLO 1wt.eu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229533AbhJRFze (ORCPT ); Mon, 18 Oct 2021 01:55:34 -0400 Received: (from willy@localhost) by pcw.home.local (8.15.2/8.15.2/Submit) id 19I5qawh016132; Mon, 18 Oct 2021 07:52:36 +0200 Date: Mon, 18 Oct 2021 07:52:36 +0200 From: Willy Tarreau To: Ammar Faizi Cc: Paul Walmsley , Palmer Dabbelt , Albert Ou , Linux Kernel Mailing List , Andy Lutomirski , Thomas Gleixner , Ingo Molnar , x86@kernel.org, "H. Peter Anvin" , David Laight , Peter Cordes , Bedirhan KURT , Louvian Lyndal , Borislav Petkov Subject: Re: [PATCH 1/2] tools/nolibc: x86: Remove `r8`, `r9` and `r10` from the clobber list Message-ID: <20211018055236.GA15718@1wt.eu> References: <20211013090339.622070-1-ammar.faizi@students.amikom.ac.id> <69kbMOkWb6SB69o0ulPlhA-ammarfaizi2@gnuweeb.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <69kbMOkWb6SB69o0ulPlhA-ammarfaizi2@gnuweeb.org> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Oct 15, 2021 at 03:25:06PM +0700, Ammar Faizi wrote: > Linux x86-64 syscall only clobbers rax, rcx and r11 (and "memory"). > > - rax for the return value. > - rcx to save the return address. > - r11 to save the rflags. (...) Now queued, thank you Ammar. I'll pass the series to Paul once we're done with the remaining patches. Willy