From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58496 invoked by alias); 29 Apr 2018 21:03:37 -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 58485 invoked by uid 89); 29 Apr 2018 21:03:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*r:sk:AECDH-A X-HELO: mx1.redhat.com Subject: Re: [PATCH 1/2] x86-64/setcontext: Pop the pointer into %rdx after syscall To: "H.J. Lu" , GNU C Library References: <20180426121700.GA30766@intel.com> From: Florian Weimer Message-ID: <8b0e9b44-d231-ef32-05a7-5fad5c7352b1@redhat.com> Date: Sun, 29 Apr 2018 21:03:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180426121700.GA30766@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2018-04/txt/msg00605.txt.bz2 On 04/26/2018 02:17 PM, H.J. Lu wrote: > + /* Pop the pointer into RDX which is preserved by the syscall. */ > + popq %rdx Sorry, the comment is a bit unclear. Why do you need to restore %rdx if it is preserved by the system call? Maybe it becomes clearer with a future change? Thanks, Florian