From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1035.google.com ([2607:f8b0:4864:20::1035]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lYjku-00BqCm-K9 for linux-um@lists.infradead.org; Tue, 20 Apr 2021 06:21:08 +0000 Received: by mail-pj1-x1035.google.com with SMTP id cu16so17270360pjb.4 for ; Mon, 19 Apr 2021 23:21:03 -0700 (PDT) MIME-Version: 1.0 References: <20210419153213.1337562-1-zhuyifei1999@gmail.com> <546324c4e77ebe65f27b0f06fea3ace28dd75fe6.camel@sipsolutions.net> In-Reply-To: From: YiFei Zhu Date: Tue, 20 Apr 2021 01:20:52 -0500 Message-ID: Subject: Re: [PATCH v2] um: Fix stack pointer alignment List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-um" Errors-To: linux-um-bounces+geert=linux-m68k.org@lists.infradead.org To: Johannes Berg , Colin Ian King Cc: linux-um@lists.infradead.org, Jeff Dike , Richard Weinberger , Anton Ivanov , Benjamin Berg On Tue, Apr 20, 2021 at 12:47 AM YiFei Zhu wrote: > movaps (%rdx),%xmm0 > movaps %xmm0,(%r12) > > The move from xmm0 to stack is omitted. I looked into this a bit further and thought I should clarify, these two instructions belong to `current_poll = next_poll`. AFAICT, `tmp = current_poll` is compiled to: movabs $0x605198b0,%r12 ; [...] movabs 0x605198b8,%rax ; mov (%r12),%rcx and `next_poll = tmp` is: movabs %rax,0x605198a8 ; mov %rcx,(%rdx) So it uses two registers, rax and rcx to store tmp, rather than on the stack. YiFei Zhu _______________________________________________ linux-um mailing list linux-um@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-um